Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonnetangsu committed Dec 10, 2024
1 parent 6fd2aab commit 4be59bc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions components/AnnotatedImage/ImageHotspot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export const ImageHotspot = ({
descriptionSize,
}: SbImageHotspotType) => {
const [isModalOpen, setIsModalOpen] = useState(false);
const buttonRef = useRef<HTMLButtonElement>(null);
const [isClicked, setIsClicked] = useState(false);
const panelRef = useRef<HTMLDivElement>(null);

Expand Down Expand Up @@ -58,7 +57,6 @@ export const ImageHotspot = ({
<div className={styles.hotspotWrapper} style={{ top: `${y * 100}%`, left: `${x * 100}%` }}>
<button
type="button"
ref={buttonRef}
onClick={handleClick}
aria-haspopup="dialog"
aria-label={`Open modal ${ariaLabel || heading}`}
Expand Down
1 change: 0 additions & 1 deletion components/ChangemakerCard/ChangemakerCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ export const ChangemakerCard = ({
type="button"
onClick={() => setIsModalOpen(true)}
aria-label={`Read more about ${heading}`}
aria-expanded={isModalOpen}
aria-haspopup="dialog"
className={styles.button}
>
Expand Down

0 comments on commit 4be59bc

Please sign in to comment.