Skip to content

Commit

Permalink
feat: add new icons needed in demand wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptammergard committed May 29, 2023
1 parent 1c36377 commit bfafdf9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-moons-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@einride/ui": patch
---

Add new icons needed in Demand Wizard.
14 changes: 14 additions & 0 deletions packages/einride-ui/src/components/content/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ export const iconNames = [
"fossilFree",
"resilientTransport",
"circularEconomy",
"retailCapacity",
"groceryAndFMCGCapacity",
"industrialCapacity",
"customCapacity",
"mail",
"CO2",
"cost",
] as const

export type IconName = (typeof iconNames)[number]
Expand Down Expand Up @@ -123,5 +130,12 @@ const getEncodedEntity = (name: IconName): ReactNode => {
if (name === "fossilFree") return <>&#x100200;</>
if (name === "resilientTransport") return <>&#x100655;</>
if (name === "circularEconomy") return <>&#x100B0E;</>
if (name === "retailCapacity") return <>&#x10041B;</>
if (name === "groceryAndFMCGCapacity") return <>&#x10036A;</>
if (name === "industrialCapacity") return <>&#x1008CC;</>
if (name === "customCapacity") return <>&#x1013B5;</>
if (name === "mail") return <>&#x100356;</>
if (name === "CO2") return <>&#x1014B9;</>
if (name === "cost") return <>&#x100598;</>
return null
}

0 comments on commit bfafdf9

Please sign in to comment.