2021-07-28 15:15:52 +02:00
|
|
|
import React from 'react';
|
|
|
|
import {
|
2021-10-19 16:08:09 +02:00
|
|
|
BrowserRouter,
|
2021-07-28 15:15:52 +02:00
|
|
|
} from 'react-router-dom';
|
|
|
|
|
2021-09-14 09:30:37 +02:00
|
|
|
import { isAuthenticated } from '../../client/state/auth';
|
2021-07-28 15:15:52 +02:00
|
|
|
|
|
|
|
import Auth from '../templates/auth/Auth';
|
|
|
|
import Client from '../templates/client/Client';
|
|
|
|
|
|
|
|
function App() {
|
|
|
|
return (
|
|
|
|
<BrowserRouter>
|
2021-10-19 16:08:09 +02:00
|
|
|
{ isAuthenticated() ? <Client /> : <Auth />}
|
2021-07-28 15:15:52 +02:00
|
|
|
</BrowserRouter>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|