Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
icbcRPG
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
icbcRPG
Commits
c2c6113f
Commit
c2c6113f
authored
Dec 18, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
dca34cb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app.jsx
project/src/app.jsx
+5
-5
No files found.
project/src/app.jsx
View file @
c2c6113f
...
...
@@ -16,16 +16,16 @@ class App extends Component {
};
}
navigateTo
=
(
page
,
pagedata
)
=>
{
this
.
setState
({
page
,
pagedata
})
navigateTo
=
(
page
,
pagedata
)
=>
{
this
.
setState
({
page
,
pagedata
})
}
render
()
{
const
{
page
,
pagedata
}
=
this
.
state
;
const
{
page
,
pagedata
}
=
this
.
state
;
return
(
<
div
>
{
page
==
'loading'
&&
<
Loading
data=
{
pagedata
}
navigateTo=
{
this
.
navigateTo
}
></
Loading
>
}
{
page
==
'mainpage'
&&
<
Mainpage
data=
{
pagedata
}
navigateTo=
{
this
.
navigateTo
}
></
Mainpage
>
}
{
page
==
'loading'
&&
<
Loading
data=
{
pagedata
}
navigateTo=
{
this
.
navigateTo
}
></
Loading
>
}
{
page
==
'mainpage'
&&
<
Mainpage
data=
{
pagedata
}
navigateTo=
{
this
.
navigateTo
}
></
Mainpage
>
}
</
div
>
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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