updated
This commit is contained in:
@@ -22,6 +22,7 @@ import BandiBeneficiario from './pages/BandiBeneficiario';
|
||||
import LoginAdmin from './pages/LoginAdmin';
|
||||
import Profile from './pages/Profile';
|
||||
import ProfileCompany from './pages/ProfileCompany';
|
||||
import Utenti from './pages/Utenti';
|
||||
|
||||
const routes = ({ role }) => {
|
||||
return (
|
||||
@@ -79,6 +80,10 @@ const routes = ({ role }) => {
|
||||
{'ROLE_SUPER_ADMIN' === role ? <PageNotFound/> : null}
|
||||
{'ROLE_BENEFICIARY' === role ? <ProfileCompany/> : null}
|
||||
</DefaultLayout>}/>
|
||||
<Route path="/utenti" element={<DefaultLayout>
|
||||
{'ROLE_SUPER_ADMIN' === role ? <Utenti/> : null}
|
||||
{'ROLE_BENEFICIARY' === role ? <PageNotFound/> : null}
|
||||
</DefaultLayout>}/>
|
||||
</Route>
|
||||
<Route exact path="/login" element={<Login/>}/>
|
||||
<Route exact path="/loginAdmin" element={<LoginAdmin/>}/>
|
||||
|
||||
Reference in New Issue
Block a user