Skip to content

Commit

Permalink
solved missing type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Son authored and Son committed Aug 29, 2023
1 parent 26341da commit 3bec6a4
Showing 1 changed file with 92 additions and 13 deletions.
105 changes: 92 additions & 13 deletions src/frontend/src/routes/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const ProtectedRoute = () => {

const Router = () => {
const isMPO = !!isMPORole();
const hideViewComments = false;

// const comingSoonBanner = (
// <div className="container w-100">
Expand Down Expand Up @@ -91,47 +92,125 @@ const Router = () => {

<Route path="collectionUseAndDisclosure">
<Route index element={<Navigate relative="path" to="view" />} />
<Route path="edit" element={<PIACollectionUseAndDisclosure />} />
<Route path="view" element={<PIACollectionUseAndDisclosure />} />
<Route
path="edit"
element={
<PIACollectionUseAndDisclosure
hideViewComments={hideViewComments}
/>
}
/>
<Route
path="view"
element={
<PIACollectionUseAndDisclosure
hideViewComments={hideViewComments}
/>
}
/>
</Route>

<Route
path="storingPersonalInformation"
element={<StoringPersonalInformation />}
element={
<StoringPersonalInformation
hideViewComments={hideViewComments}
/>
}
>
<Route index element={<Navigate relative="path" to="view" />} />
<Route path="edit" element={<StoringPersonalInformation />} />
<Route path="view" element={<StoringPersonalInformation />} />
<Route
path="edit"
element={
<StoringPersonalInformation
hideViewComments={hideViewComments}
/>
}
/>
<Route
path="view"
element={
<StoringPersonalInformation
hideViewComments={hideViewComments}
/>
}
/>
</Route>

<Route path="securityOfPersonalInformation">
<Route index element={<Navigate relative="path" to="view" />} />
<Route path="edit" element={<SecurityPersonalInformation />} />
<Route path="view" element={<SecurityPersonalInformation />} />
<Route
path="edit"
element={
<SecurityPersonalInformation
hideViewComments={hideViewComments}
/>
}
/>
<Route
path="view"
element={
<SecurityPersonalInformation
hideViewComments={hideViewComments}
/>
}
/>
</Route>

<Route path="accuracyCorrectionAndRetention">
<Route index element={<Navigate relative="path" to="view" />} />
<Route path="edit" element={<AccuracyCorrectionAndRetention />} />
<Route path="view" element={<AccuracyCorrectionAndRetention />} />
<Route
path="edit"
element={
<AccuracyCorrectionAndRetention
hideViewComments={hideViewComments}
/>
}
/>
<Route
path="view"
element={
<AccuracyCorrectionAndRetention
hideViewComments={hideViewComments}
/>
}
/>
</Route>

<Route path="agreementsAndInformationBanks">
<Route index element={<Navigate relative="path" to="view" />} />
<Route
path="edit"
element={<PIAAgreementsAndInformationBanks />}
element={
<PIAAgreementsAndInformationBanks
hideViewComments={hideViewComments}
/>
}
/>
<Route
path="view"
element={<PIAAgreementsAndInformationBanks />}
element={
<PIAAgreementsAndInformationBanks
hideViewComments={hideViewComments}
/>
}
/>
</Route>

<Route path="additionalRisks">
<Route index element={<Navigate relative="path" to="view" />} />
<Route path="edit" element={<PIAAdditionalRisks />} />
<Route path="view" element={<PIAAdditionalRisks />} />
<Route
path="edit"
element={
<PIAAdditionalRisks hideViewComments={hideViewComments} />
}
/>
<Route
path="view"
element={
<PIAAdditionalRisks hideViewComments={hideViewComments} />
}
/>
</Route>
<Route path="ppq">
<Route index element={<Navigate relative="path" to="view" />} />
Expand Down

0 comments on commit 3bec6a4

Please sign in to comment.