mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-10-03 16:13:57 -07:00
* Remove un-needed state and useEffect vars * Add initial Accordion UI to side panel - abstract out Indicators to separate component - add snapshot test - define new indicators in EXPLORE copy - intl copy to AreaDetail component * Make side panel indicators styling match design * Rename export IndicatorCategory -> CategoryCard * Add disadvangted dots to category and indicators - add new Category component - add new DisadvantageDot component - make copy corrections - comment out send feedback link in side panel * Integrate MapLegend's dot into component - change color to 'blue-warm-70v' - update map stroke to 'blue-warm-70v' * Add new indicator names from BE - add abbreviations and use key in json file to decode
25 lines
718 B
TypeScript
25 lines
718 B
TypeScript
import React from 'react';
|
|
import {useIntl} from 'gatsby-plugin-intl';
|
|
|
|
import * as styles from './mapLegend.module.scss';
|
|
import * as EXPLORE_COPY from '../../data/copy/explore';
|
|
import DisadvantageDot from '../DisadvantageDot';
|
|
|
|
const MapLegend = () => {
|
|
const intl = useIntl();
|
|
return (
|
|
<div className={styles.legendContainer}>
|
|
<DisadvantageDot isBig={true} />
|
|
<div className={styles.legendTextBox}>
|
|
<div className={'j40-h4'}>
|
|
{intl.formatMessage(EXPLORE_COPY.LEGEND.PRIORITY_LABEL)}
|
|
</div>
|
|
<p className={'secondary'}>
|
|
{intl.formatMessage(EXPLORE_COPY.LEGEND.PRIORITY_DESCRIPT)}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default MapLegend;
|