Skip to content

Commit

Permalink
style: Use correct combo chart icons
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Oct 17, 2023
1 parent aa1547c commit 9f2b0a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/configurator/components/ui-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,11 @@ export const getIconName = (name: string): IconName => {
case "map":
return "chartMap";
case "comboLineSingle":
return "chartMultiLine";
case "comboLineDual":
return "chartDualAxisLine";
case "comboLineColumn":
// FIXME: Use a proper icon.
return "star";
return "chartColumnLine";
case "baseLayer":
return "mapMaptype";
case "areaLayer":
Expand Down
5 changes: 3 additions & 2 deletions app/icons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ export const getChartIcon = (chartType: ChartType): IconName => {
return "chartScatterplot";
case "table":
return "table";
// FIXME: use proper icons
case "comboLineSingle":
return "chartMultiLine";
case "comboLineDual":
return "chartDualAxisLine";
case "comboLineColumn":
return "star";
return "chartColumnLine";
default:
const _exhaustiveCheck: never = chartType;
return _exhaustiveCheck;
Expand Down

0 comments on commit 9f2b0a7

Please sign in to comment.