diff --git a/services/ui-src/src/components/reports/ReportPageFooter.tsx b/services/ui-src/src/components/reports/ReportPageFooter.tsx index 4f95a50c8..f90078edd 100644 --- a/services/ui-src/src/components/reports/ReportPageFooter.tsx +++ b/services/ui-src/src/components/reports/ReportPageFooter.tsx @@ -7,6 +7,7 @@ import { CustomHtmlElement, FormJson, ReportStatus } from "types"; // assets import nextIcon from "assets/icons/icon_next_white.png"; import previousIcon from "assets/icons/icon_previous_blue.png"; +import { ROUTES } from "../../constants"; export const ReportPageFooter = ({ submitting, @@ -23,7 +24,7 @@ export const ReportPageFooter = ({ const { userIsAdmin, userIsReadOnly, userIsEndUser } = useStore().user ?? {}; const isAdminUserType = userIsAdmin || userIsReadOnly; - const hidePrevious = previousRoute === "/mcpar" || previousRoute === "/mlr"; + const hidePrevious = ROUTES.includes(previousRoute); const reportWithSubmittedStatus = report?.status === ReportStatus.SUBMITTED; const formIsDisabled = (isAdminUserType && !form?.editableByAdmins) || @@ -34,7 +35,7 @@ export const ReportPageFooter = ({ @@ -44,7 +45,7 @@ export const ReportPageFooter = ({ @@ -57,7 +58,7 @@ export const ReportPageFooter = ({ sx={sx.nextButton} rightIcon={ !submitting ? ( - + Next ) : undefined } > @@ -102,6 +103,6 @@ const sx = { }, praStatement: { fontSize: "0.875rem", - marginTop: "1rem", + marginTop: "2rem", }, }; diff --git a/services/ui-src/src/constants.ts b/services/ui-src/src/constants.ts index 9a1b8da92..331e24cb6 100644 --- a/services/ui-src/src/constants.ts +++ b/services/ui-src/src/constants.ts @@ -79,3 +79,6 @@ export enum States { // TIMEOUT PARAMS export const IDLE_WINDOW = 30 * 60 * 1000; // ms export const PROMPT_AT = 29 * 60 * 1000; //ms + +// routes +export const ROUTES = ["/mcpar", "/mlr", "/naaar"];