updated form fields and application logic;
This commit is contained in:
@@ -5,7 +5,8 @@ import PageNotFound from './pages/PageNotFound';
|
||||
import Login from './pages/Login';
|
||||
import ProtectedRoute from './components/ProtectedRoute';
|
||||
import Dashboard from './pages/Dashboard';
|
||||
import DashboardBenefeciario from './pages/DashboardBenefeciario';
|
||||
import DashboardBeneficiario from './pages/DashboardBeneficiario';
|
||||
import BandoViewBeneficiario from './pages/BandoViewBeneficiario';
|
||||
import DefaultLayout from './layouts/DefaultLayout';
|
||||
import Bandi from './pages/Bandi';
|
||||
import BandoEdit from './pages/BandoEdit';
|
||||
@@ -14,7 +15,8 @@ import BandoFormsEdit from './pages/BandoFormsEdit';
|
||||
import BandoForms from './pages/BandoForms';
|
||||
import BandoFormsPreview from './pages/BandoFormsPreview';
|
||||
import BandoFlowEdit from './pages/BandoFlowEdit';
|
||||
import Bids from './pages/Bids';
|
||||
import Applications from './pages/Applications';
|
||||
import BandoApplication from './pages/BandoApplication';
|
||||
|
||||
const routes = ({ role }) => {
|
||||
return (
|
||||
@@ -22,7 +24,7 @@ const routes = ({ role }) => {
|
||||
<Route element={<ProtectedRoute/>}>
|
||||
<Route path="/" element={<DefaultLayout>
|
||||
{'ROLE_SUPER_ADMIN' === role ? <Dashboard/> : null}
|
||||
{'ROLE_BENEFICIARY' === role ? <DashboardBenefeciario/> : null}
|
||||
{'ROLE_BENEFICIARY' === role ? <DashboardBeneficiario/> : null}
|
||||
</DefaultLayout>}/>
|
||||
<Route path="/tenders" element={<DefaultLayout>
|
||||
{'ROLE_SUPER_ADMIN' === role ? <Bandi/> : null}
|
||||
@@ -32,6 +34,7 @@ const routes = ({ role }) => {
|
||||
</DefaultLayout>}/>
|
||||
<Route path="/tenders/:id/preview" element={<DefaultLayout>
|
||||
{'ROLE_SUPER_ADMIN' === role ? <BandoView/> : null}
|
||||
{'ROLE_BENEFICIARY' === role ? <BandoViewBeneficiario/> : null}
|
||||
</DefaultLayout>}/>
|
||||
<Route path="/tenders/:id/preview-evaluation" element={<DefaultLayout>
|
||||
{'ROLE_SUPER_ADMIN' === role ? <BandoView/> : null}
|
||||
@@ -48,8 +51,11 @@ const routes = ({ role }) => {
|
||||
<Route path="/tenders/:id/flow" element={<DefaultLayout>
|
||||
{'ROLE_SUPER_ADMIN' === role ? <BandoFlowEdit/> : null}
|
||||
</DefaultLayout>}/>
|
||||
<Route path="/bids" element={<DefaultLayout>
|
||||
{'ROLE_BENEFICIARY' === role ? <Bids/> : null}
|
||||
<Route path="/tenders/:id/application/" element={<DefaultLayout>
|
||||
{'ROLE_BENEFICIARY' === role ? <BandoApplication/> : null}
|
||||
</DefaultLayout>}/>
|
||||
<Route path="/applications" element={<DefaultLayout>
|
||||
{'ROLE_BENEFICIARY' === role ? <Applications/> : null}
|
||||
</DefaultLayout>}/>
|
||||
</Route>
|
||||
<Route exact path="/login" element={<Login/>}/>
|
||||
|
||||
Reference in New Issue
Block a user