Showing
1 changed file
with
1 additions
and
2 deletions
| ... | @@ -25,8 +25,7 @@ class App extends React.Component { | ... | @@ -25,8 +25,7 @@ class App extends React.Component { |
| 25 | render(){ | 25 | render(){ |
| 26 | return ( | 26 | return ( |
| 27 | <div className="app"> | 27 | <div className="app"> |
| 28 | - {!this.state.isAuthenticated && <Login />} | 28 | + {this.state.isAuthenticated?(<Body />):(<Login />)} |
| 29 | - {this.state.isAuthenticated && <Body />} | ||
| 30 | </div> | 29 | </div> |
| 31 | ); | 30 | ); |
| 32 | } | 31 | } | ... | ... |
-
Please register or login to post a comment