Skip to content

Commit

Permalink
Improve iconMap names
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Jan 15, 2025
1 parent 8f7a327 commit 24d03be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/client/src/components/buttons/labelingButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ export const LabelingToggleButton = forwardRef<HTMLButtonElement, LabelingToggle

const iconMap = {
right: {
true: <SidebarRight />,
false: <SidebarLeft />,
open: <SidebarRight />,
closed: <SidebarLeft />,
},
bottom: {
true: <SidebarDown />,
false: <SidebarUp />,
open: <SidebarDown />,
closed: <SidebarUp />,
},
};

const getIcon = () => {
return iconMap[panelPosition][panelOpen ? "true" : "false"];
return iconMap[panelPosition][panelOpen ? "open" : "closed"];
};

return (
Expand Down

0 comments on commit 24d03be

Please sign in to comment.