- updated login page;
- updated registration page; - created profile page; - created company profile page;
This commit is contained in:
@@ -21,6 +21,7 @@ import Registration from './pages/Registration';
|
||||
import BandiBeneficiario from './pages/BandiBeneficiario';
|
||||
import LoginAdmin from './pages/LoginAdmin';
|
||||
import Profile from './pages/Profile';
|
||||
import ProfileCompany from './pages/ProfileCompany';
|
||||
|
||||
const routes = ({ role }) => {
|
||||
return (
|
||||
@@ -74,6 +75,10 @@ const routes = ({ role }) => {
|
||||
{'ROLE_SUPER_ADMIN' === role ? <PageNotFound/> : null}
|
||||
{'ROLE_BENEFICIARY' === role ? <Profile/> : null}
|
||||
</DefaultLayout>}/>
|
||||
<Route path="/profilo-aziendale" element={<DefaultLayout>
|
||||
{'ROLE_SUPER_ADMIN' === role ? <PageNotFound/> : null}
|
||||
{'ROLE_BENEFICIARY' === role ? <ProfileCompany/> : null}
|
||||
</DefaultLayout>}/>
|
||||
</Route>
|
||||
<Route exact path="/login" element={<Login/>}/>
|
||||
<Route exact path="/loginAdmin" element={<LoginAdmin/>}/>
|
||||
|
||||
Reference in New Issue
Block a user