cinny/src/app/pages/App.jsx

20 lines
382 B
React
Raw Normal View History

2021-07-28 15:15:52 +02:00
import React from 'react';
import {
BrowserRouter,
2021-07-28 15:15:52 +02:00
} from 'react-router-dom';
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>
{ isAuthenticated() ? <Client /> : <Auth />}
2021-07-28 15:15:52 +02:00
</BrowserRouter>
);
}
export default App;