Skip to content

Commit

Permalink
Add redirect from / to /app
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Nov 12, 2020
1 parent 4873fd6 commit 732b86d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/App/component.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//external modules
import React from "react";
import { Route, Switch } from "react-router-dom";
import { Redirect, Route, Switch } from "react-router-dom";

//TC modules
import { path } from "../../history";
Expand All @@ -21,6 +21,9 @@ export default class App extends React.Component {
return (
<div className="App">
<Switch>
<Route exact path={path.root}>
<Redirect to={path.projScreen} />
</Route>
<PrivateRoute path={path.projScreen} component={AppWithBar} />
<Route path={path.login} component={Login} />
<Route path={path.register} component={Register} />
Expand Down

0 comments on commit 732b86d

Please sign in to comment.