Skip to content

Commit

Permalink
added a / route for authenticated user
Browse files Browse the repository at this point in the history
  • Loading branch information
mattvanegas13 committed Jul 1, 2019
1 parent 0b67232 commit d93d115
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class App extends Component {
<Route path="/coco" component={() => <KeyTracker onLogout={this.onLogout} history={this.props.history}/>} />
<Route path="/finalstats" component={() => <Stats onLogout={this.onLogout} history={this.props.history}/>} />
<Route path="/exam" component={() => <ExamSelection onLogout={this.onLogout} history={this.props.history}/>} />
<Route path="/" component={() => <HomePage onLogout={this.onLogout} history={this.props.history} setPageSourceViaCache={this.setPageSourceViaCache}/>} />
<Route path="/404"component={Component404} />
</Switch>
)
Expand All @@ -93,7 +94,7 @@ class App extends Component {
<Switch>
<Route exact path="/" component={() => <LoginPage onSuccessfulAuth={this.onSuccessfulAuth} history={this.props.history}/>}/>
<Route path="/signup" component={() => <SignupPage onSuccessfulAuth={this.onSuccessfulAuth} history={this.props.history}/>}/>
<Route component={RedirectPage} />
<Route component={RedirectPage}/>
</Switch>
)
}
Expand Down

0 comments on commit d93d115

Please sign in to comment.