-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DBC22-1882: updated advisory/bulletin empty state page to static page
DBC22-1882: updated advisory/bulletin empty state page to static page
- Loading branch information
1 parent
47f23f7
commit 887c741
Showing
4 changed files
with
33 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
// React | ||
import React from 'react'; | ||
// Styling | ||
import './AdvisoriesList.scss'; | ||
import Container from 'react-bootstrap/Container'; | ||
import parse from 'html-react-parser'; | ||
|
||
export default function EmptyAdvisory(props) { | ||
const { advisory } = props; | ||
|
||
export default function EmptyAdvisory() { | ||
// Rendering | ||
return ( | ||
<div> | ||
<h4 className='advisory-li-title'>{props.advisory.title}</h4> | ||
{advisory && ( | ||
<Container className="advisory-body-container cms-body"> | ||
<p>{parse(advisory.body)}</p> | ||
</Container> | ||
)} | ||
<h4 className='advisory-li-title'>No advisories are active at the moment</h4> | ||
<Container className="advisory-body-container cms-body"> | ||
<div className="advisory-body-container cms-body container"> | ||
<p> | ||
If there are widespread travel advisories, they will be posted here to give you guidance on: | ||
</p> | ||
<ul> | ||
<li>how to navigate safely through the affected area</li> | ||
<li>where to detour if available, and</li> | ||
<li>keep you informed with the most up-to-date information we have.</li> | ||
</ul> | ||
</div> | ||
</Container> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
// React | ||
import React from 'react'; | ||
// Styling | ||
import './BulletinsList.scss'; | ||
import Container from 'react-bootstrap/Container'; | ||
import parse from 'html-react-parser'; | ||
|
||
export default function EmptyBulletin(props) { | ||
const { bulletin } = props; | ||
|
||
export default function EmptyBulletin() { | ||
// Rendering | ||
return ( | ||
<div> | ||
<h4 className='bulletin-li-title'>{props.bulletin.title}</h4> | ||
{bulletin && ( | ||
<Container className="bulletin-body-container cms-body"> | ||
<p>{parse(bulletin.body)}</p> | ||
</Container> | ||
)} | ||
<h4 className='bulletin-li-title'>No bulletins at the moment</h4> | ||
<Container className="bulletin-body-container cms-body"> | ||
<div className="bulletin-body-container cms-body container"> | ||
<p> | ||
There are currently no bulletins to display. | ||
As we continue to evolve DriveBC to better meet the needs of British Columbians, | ||
watch this space for updates as they come! | ||
</p> | ||
</div> | ||
</Container> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters