Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launched tab for democracy #580

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/components/CauseIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
mdiFoodApple,
mdiWater,
mdiAccountHeart,
mdiVote,
} from '@mdi/js'

const PAW = 'paw'
Expand All @@ -25,6 +26,7 @@
const PERSON_HEART = 'person-heart'
const MONEY = 'money'
const TRANSGENDER = 'transgender'
const VOTE = 'vote'

const iconOptions = [
PAW,
Expand All @@ -37,6 +39,7 @@
PERSON_HEART,
TRANSGENDER,
MONEY,
VOTE,
]

const CauseIcon = ({ icon, className }) => {
Expand Down Expand Up @@ -117,6 +120,18 @@
</SvgIcon>
)
break
case VOTE:
iconComp = (

Check warning on line 124 in src/components/CauseIcon.js

View check run for this annotation

Codecov / codecov/patch

src/components/CauseIcon.js#L123-L124

Added lines #L123 - L124 were not covered by tests
<SvgIcon className={className}>
<path
fillRule="evenodd"
clipRule="evenodd"
d={mdiVote}
fill="inherit"
/>
</SvgIcon>
)
break

Check warning on line 134 in src/components/CauseIcon.js

View check run for this annotation

Codecov / codecov/patch

src/components/CauseIcon.js#L134

Added line #L134 was not covered by tests
case PERSON_HEART:
iconComp = (
<SvgIcon className={className}>
Expand Down
Loading