Skip to content

Commit

Permalink
[MDS-5792] Update report status. (#2990)
Browse files Browse the repository at this point in the history
Update report status.
  • Loading branch information
henryoforeh-dev authored Mar 6, 2024
1 parent a5fb0ae commit 7bd48b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/common/src/redux/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,9 @@ export const getMineReportStatusDescription = (
) => {
const currentDate = moment().format("YYYY-MM-DD");
const MINE_REPORT_STATUS_DESCRIPTION_HASH = {
[MINE_REPORT_SUBMISSION_CODES.NON]: `The ministry has requested for the report from the proponent through MineSpace. Requested by ${
latestSubmission?.update_user
} on ${formatDate(currentDate)}`,
[MINE_REPORT_SUBMISSION_CODES.ACC]:
"The Ministry has reviewed the report, no more revision is required",
[MINE_REPORT_SUBMISSION_CODES.REC]:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ const ReportPage = () => {
const status = MINE_REPORT_STATUS_HASH[latestSubmission?.mine_report_submission_status_code];

const MINE_REPORT_STATUS_DESCRIPTION_HASH = {
[MINE_REPORT_SUBMISSION_CODES.NON]:
"This ministry has requested the report below. Please finish and submit this submission.",
[MINE_REPORT_SUBMISSION_CODES.ACC]:
"This report has been submitted and has been reviewed by ministry staff.",
[MINE_REPORT_SUBMISSION_CODES.REC]:
Expand Down

0 comments on commit 7bd48b5

Please sign in to comment.