diff --git a/services/ui-src/src/types/states.ts b/services/ui-src/src/types/states.ts index 47b3d82b..05da5485 100644 --- a/services/ui-src/src/types/states.ts +++ b/services/ui-src/src/types/states.ts @@ -21,6 +21,7 @@ export interface HcbsReportState { currentPageId?: string; modalOpen: boolean; modalComponent?: React.ReactFragment; + lastSavedTime?: string; // ACTIONS setReport: (report?: Report) => void; diff --git a/services/ui-src/src/utils/state/useStore.ts b/services/ui-src/src/utils/state/useStore.ts index 26af9c60..9a056578 100644 --- a/services/ui-src/src/utils/state/useStore.ts +++ b/services/ui-src/src/utils/state/useStore.ts @@ -29,6 +29,7 @@ const reportStore = (set: Function): HcbsReportState => ({ currentPageId: undefined, modalOpen: false, modalComponent: undefined, + lastSavedTime: undefined, // actions setReport: (report: Report | undefined) =>