Last change
on this file since bc20307 was bc20307, checked in by Tasevski2 <39170279+Tasevski2@…>, 2 years ago |
Push before video
|
-
Property mode
set to
100644
|
File size:
709 bytes
|
Rev | Line | |
---|
[bc20307] | 1 | import { Switch, Route, Redirect } from 'react-router-dom';
|
---|
| 2 | import { AuthWrapper } from './styles';
|
---|
| 3 |
|
---|
| 4 | import Login from './Login';
|
---|
| 5 | import LoginGuest from './LoginGuest';
|
---|
| 6 | import Register from './Register';
|
---|
| 7 | import MapUsers from '../user/MapUsers';
|
---|
| 8 |
|
---|
| 9 | const Auth = () => {
|
---|
| 10 | return (
|
---|
| 11 | <AuthWrapper>
|
---|
| 12 | <Switch>
|
---|
| 13 | <Route exact path='/login' component={Login} />
|
---|
| 14 | <Route exact path='/login-guest' component={LoginGuest} />
|
---|
| 15 | <Route exact path='/register' component={Register} />
|
---|
| 16 | <Route exact path={'/'} component={MapUsers} />
|
---|
| 17 | <Redirect to='/' />
|
---|
| 18 | </Switch>
|
---|
| 19 | </AuthWrapper>
|
---|
| 20 | );
|
---|
| 21 | };
|
---|
| 22 |
|
---|
| 23 | export default Auth;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.