Updated dependencies

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-11-19 13:20:34 +05:30
parent 5b0f95fed9
commit f628a6c3d6
5 changed files with 94 additions and 188 deletions

View file

@ -1,7 +1,4 @@
import React from 'react';
import {
BrowserRouter,
} from 'react-router-dom';
import { isAuthenticated } from '../../client/state/auth';
@ -9,11 +6,7 @@ import Auth from '../templates/auth/Auth';
import Client from '../templates/client/Client';
function App() {
return (
<BrowserRouter>
{ isAuthenticated() ? <Client /> : <Auth />}
</BrowserRouter>
);
return isAuthenticated() ? <Client /> : <Auth />;
}
export default App;