Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이준성
/
khuwitch
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
ijunseong
2020-12-08 17:44:34 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a2b93076b49dede0a201a09d05439ff4485769f5
a2b93076
1 parent
45b046f5
Update: render() 한줄로 수정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
frontend/src/App.js
frontend/src/App.js
View file @
a2b9307
...
...
@@ -13,7 +13,7 @@ class App extends React.Component {
isAuthenticated
:
false
,
}
}
componentDidMount
(
props
){
var
urlQuery
=
url
.
parse
(
window
.
location
.
href
).
query
;
var
param
=
qs
.
parse
(
urlQuery
);
...
...
@@ -25,8 +25,7 @@ class App extends React.Component {
render
(){
return
(
<
div
className
=
"app"
>
{
!
this
.
state
.
isAuthenticated
&&
<
Login
/>
}
{
this
.
state
.
isAuthenticated
&&
<
Body
/>
}
{
this
.
state
.
isAuthenticated
?(
<
Body
/>
):(
<
Login
/>
)}
<
/div
>
);
}
...
...
Please
register
or
login
to post a comment