mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-03 12:54:19 -07:00
Refactor alerts (#562)
* Refactor alerts * Remove J40Alert and classes * Make AlertWrapper the primary component. * Props to show one or both alerts * Unit tests to verify one or both works correctly * Update pages to use AlertWrapper * Remove unused J40Aside. * Remove dead code from index
This commit is contained in:
parent
f5ba63977a
commit
b32fd6ddcb
17 changed files with 154 additions and 272 deletions
|
@ -2,11 +2,11 @@ import * as React from 'react';
|
|||
import {useIntl} from 'gatsby-plugin-intl';
|
||||
import {defineMessages} from 'react-intl';
|
||||
|
||||
import J40Alert from '../J40Alert';
|
||||
import J40Map from '../J40Map';
|
||||
|
||||
import * as styles from './mapWrapper.module.scss';
|
||||
import * as constants from '../../data/constants';
|
||||
import AlertWrapper from '../AlertWrapper';
|
||||
|
||||
interface IMapWrapperProps {
|
||||
location: Location
|
||||
|
@ -28,7 +28,7 @@ const MapWrapper = ({location}: IMapWrapperProps) => {
|
|||
});
|
||||
return (
|
||||
<>
|
||||
<J40Alert isPaddedLeft={true}/>
|
||||
<AlertWrapper showBetaAlert={false} showLimitedDataAlert={true}/>
|
||||
<J40Map location={location}/>
|
||||
<div className={styles.mapCaptionTextLink}>
|
||||
<a href={constants.DOWNLOAD_ZIP_URL}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue