Add time to expiration date (#1654)

* Push out expiration by a day for fast fix

* Add timestampt to expiration

- update snapshots

* Remove timed alerts
This commit is contained in:
Vim 2022-05-25 12:10:14 -04:00 committed by GitHub
commit ef46af00f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 15 deletions

View file

@ -8,12 +8,11 @@ import * as COMMON_COPY from '../../data/copy/common';
const RequestForInfo = () => {
const intl = useIntl();
const commentPeriodExpired = new Date < COMMON_COPY.ALERTS.EXPIRATION_DATE;
return (
<SummaryBox className={styles.rfiBox} heading={intl.formatMessage(CONTACT_COPY.RFI_BOX.TITLE)}>
<p>{CONTACT_COPY.RFI_BOX_BODY}</p>
<p>{commentPeriodExpired && COMMON_COPY.ALERTS.ALERT_1_DESCRIPTION}</p>
<p>{COMMON_COPY.ALERTS.ALERT_1_DESCRIPTION}</p>
</SummaryBox>
);
};