Skip to content

Commit

Permalink
Add checklists to sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcnulty committed Apr 25, 2024
1 parent af6aa77 commit 021c2f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions site/gatsby-site/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const config = {
{ title: 'Taxonomies', label: 'taxonomies', url: '/taxonomies/', items: [] },
{ title: 'Word Counts', label: 'wordcounts', url: '/summaries/wordcounts/', items: [] },
{ title: 'Submit Incident Reports', label: 'submit', url: '/apps/submit/', items: [] },
{ title: 'Risk Checklists', label: 'checklists', url: '/apps/checklists/', items: [] },
{
title: 'Submission Leaderboard',
label: 'leaderboard',
Expand Down
4 changes: 4 additions & 0 deletions site/gatsby-site/src/components/sidebar/treeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
faTable,
faBuilding,
faUser,
faSquareCheck,
} from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';

Expand Down Expand Up @@ -143,6 +144,9 @@ function getIcon(label, current = false) {
<FontAwesomeIcon titleId="entities" icon={faBuilding} className={fontAwesomeStyles} />
),
user: <FontAwesomeIcon titleId="user" icon={faUser} className={fontAwesomeStyles} />,
checklists: (
<FontAwesomeIcon titleId="entities" icon={faSquareCheck} className={fontAwesomeStyles} />
),
spatial: (
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down

0 comments on commit 021c2f3

Please sign in to comment.