Skip to content

Commit

Permalink
fix: remove duplicate stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschonti committed Dec 22, 2024
1 parent e046ea2 commit b40e79d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
16 changes: 1 addition & 15 deletions src/components/Accordions/AccordionBoxItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,9 @@ export default function AccordionBoxItems({
<Popover>
<PopoverTrigger>
{item.infoIcon && (
<Button
aria-label="More info"
isIconOnly
className="w-[37px] h-[37px] p-[5.5px]"
variant="light"
>
<Button as="span" isIconOnly className="w-[37px] h-[37px] p-[5.5px]" variant="light">
{item.infoIcon}
</Button>
// <div
// role="button"
// tabIndex={0}
// onClick={() => 1}
// onKeyDown={() => 1}
// className="w-[37px] h-[37px] p-[5.5px] hover:bg-default hover:opacity-40 rounded-xl"
// >
// <span className="hover:opacity-100 hover:text-white">{item.infoIcon}</span>
// </div>
)}
</PopoverTrigger>
<PopoverContent>
Expand Down
1 change: 0 additions & 1 deletion src/components/Chatbot/Chatbot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ export default function HungerMapChatbot() {
{!isOpen && (
<Tooltip text={TRIGGER_CHAT}>
<Button
aria-label="Open Chatbot"
onClick={toggleChat}
className="
relative flex items-center justify-center min-w-12 h-12 px-1 rounded-full bg-content1 hover:bg-content2 shadow-md"
Expand Down
2 changes: 0 additions & 2 deletions src/components/Map/ZoomControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export default function ZoomControl({ threshold, callback }: ZoomControlProps) {
<div className="absolute right-4 bottom-7 z-9999 flex flex-col shadow-lg">
<Button
isDisabled={zoomLevel === MAP_MAX_ZOOM}
aria-label="Zoom in"
size="sm"
onClick={() => map.zoomIn()}
color="default"
Expand All @@ -46,7 +45,6 @@ export default function ZoomControl({ threshold, callback }: ZoomControlProps) {
</Button>
<Button
isDisabled={zoomLevel === MAP_MIN_ZOOM}
aria-label="Zoom out"
size="sm"
onClick={() => map.zoomOut()}
className="rounded-b-md px-2 min-w-0 rounded-t-none z-9999 bg-content1 hover:bg-content2"
Expand Down

0 comments on commit b40e79d

Please sign in to comment.