cinny/src/app/pages/App.jsx
Ajay Bura 977759145e Fix redirect on SSO login (#142), #27, #94
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-10-19 19:38:09 +05:30

19 lines
382 B
JavaScript

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