Add TSD and RFI to alert, add link to download slides and reverse events in PEC (#1633)

* Add TSD link to alert

- refactor LinkTypeWrapper API to take a defineMessage as URL
- remove legacy console.log statements
- update snapshots

* Add slides under YouTube link

* Render events in DESC order on PEC

* Add RFI to alert and update snapshots
This commit is contained in:
Vim 2022-05-12 11:59:10 -04:00 committed by GitHub
commit bed73dd8d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 468 additions and 281 deletions

View file

@ -7,6 +7,8 @@ import * as styles from './PublicVideoBox.module.scss';
// @ts-ignore
import launchIcon from '/node_modules/uswds/dist/img/usa-icons/launch.svg';
// @ts-ignore
import fileDownloadIcon from '/node_modules/uswds/dist/img/usa-icons/file_download.svg';
const PublicVideoBox = () => {
const intl = useIntl();
@ -28,12 +30,33 @@ const PublicVideoBox = () => {
>
<div className={styles.buttonContainer}>
<div className={styles.buttonText}>
{intl.formatMessage(PUBLIC_COPY.PUBLIC_ENG_VIDEO.BUTTON_TEXT)}
{intl.formatMessage(PUBLIC_COPY.PUBLIC_ENG_VIDEO.BUTTON1_TEXT)}
</div>
<img
className={styles.buttonImage}
src={launchIcon}
alt={intl.formatMessage(PUBLIC_COPY.PUBLIC_ENG_VIDEO.IMG_ALT_TEXT)}
alt={intl.formatMessage(PUBLIC_COPY.PUBLIC_ENG_VIDEO.IMG_ALT_TEXT1)}
/>
</div>
</Button>
</a>
<a
className={styles.publicVideoLink}
href={`https://static-data-screeningtool.geoplatform.gov/data-pipeline/data/score/downloadable/technical-training-slides.pptx`}
download
>
<Button
type="button"
className={styles.youTubeBtn}
>
<div className={styles.buttonContainer}>
<div className={styles.buttonText}>
{intl.formatMessage(PUBLIC_COPY.PUBLIC_ENG_VIDEO.BUTTON2_TEXT)}
</div>
<img
className={styles.buttonImage}
src={fileDownloadIcon}
alt={intl.formatMessage(PUBLIC_COPY.PUBLIC_ENG_VIDEO.IMG_ALT_TEXT2)}
/>
</div>
</Button>