- test of spid login;

This commit is contained in:
Vitalii Kiiko
2024-09-26 09:58:08 +02:00
parent 1612442ad2
commit 1bd00def4b
5 changed files with 74 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ import BandoApplication from './pages/BandoApplication';
import Registration from './pages/Registration';
import BandiBeneficiario from './pages/BandiBeneficiario';
import LoginAdmin from './pages/LoginAdmin';
import Profile from './pages/Profile';
const routes = ({ role }) => {
return (
@@ -69,6 +70,10 @@ const routes = ({ role }) => {
{'ROLE_SUPER_ADMIN' === role ? <PageNotFound/> : null}
{'ROLE_BENEFICIARY' === role ? <BandoApplication/> : null}
</DefaultLayout>}/>
<Route path="/profilo" element={<DefaultLayout>
{'ROLE_SUPER_ADMIN' === role ? <PageNotFound/> : null}
{'ROLE_BENEFICIARY' === role ? <Profile/> : null}
</DefaultLayout>}/>
</Route>
<Route exact path="/login" element={<Login/>}/>
<Route exact path="/loginAdmin" element={<LoginAdmin/>}/>