mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-30 00:51:40 -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
|
@ -20,8 +20,8 @@ const CEJSTPage = ({location}: IMapPageProps) => {
|
|||
// We temporarily removed MapControls, which would enable you to `setFeatures` also, for now
|
||||
// We will bring back later when we have interactive controls.
|
||||
return (<Layout location={location}>
|
||||
<J40MainGridContainer fullWidth={true}>
|
||||
<AlertWrapper hideWarningAlert={true}/>
|
||||
<J40MainGridContainer>
|
||||
<AlertWrapper showBetaAlert={true} showLimitedDataAlert={false}/>
|
||||
</J40MainGridContainer>
|
||||
|
||||
<J40MainGridContainer className={'j40-main-content'}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue