Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
rpg-workshop
Commits
b99f1e8f
Commit
b99f1e8f
authored
Sep 16, 2019
by
Joe Ziemba
Browse files
fixing build failures
parent
d05336d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/App.js
View file @
b99f1e8f
...
...
@@ -4,10 +4,8 @@ import "./App.css";
import
{
UserContext
}
from
"
./context
"
;
import
{
StatblockGenerator
}
from
"
./StatblockGenerator
"
;
import
About
from
"
./views/About
"
;
import
{
TopBar
}
from
"
./_globalComponents
"
;
import
Home
from
"
./Home/Home
"
;
import
{
firebase
}
from
"
./Firebase
"
;
...
...
src/Home/Home.js
View file @
b99f1e8f
import
React
from
"
react
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
{
UserContext
}
from
"
../context
"
;
import
{
firebase
}
from
"
../Firebase
"
;
//
import { firebase } from "../Firebase";
class
Home
extends
React
.
Component
{
constructor
(
props
)
{
...
...
src/StatblockGenerator/StatblockGenerator.js
View file @
b99f1e8f
...
...
@@ -121,17 +121,17 @@ class StatblockGenerator extends Component {
}
let
stats
=
localStorage
.
getItem
(
"
stats
"
);
//
if (stats) {
//
stats = JSON.parse(stats);
//
this.setState({
//
...stats,
//
exportView: false
//
});
//
} else {
//
this.setState({
//
...initialState
//
});
//
}
if
(
stats
)
{
stats
=
JSON
.
parse
(
stats
);
this
.
setState
({
...
stats
,
exportView
:
false
});
}
else
{
this
.
setState
({
...
initialState
});
}
}
setStatblock
(
statblock
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment