mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-15 11:40:29 +03:00
Updated dependencies
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
5b0f95fed9
commit
f628a6c3d6
5 changed files with 94 additions and 188 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue