Skip to content

Commit

Permalink
UPDATE: tweaks to toolbar button to prevent suspense flash: as next/link
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed Jul 30, 2024
1 parent 757d017 commit 77d0538
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/components/ToolbarButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ function ToolbarButton({
size,
}: IProps) {
return (
<Link href={href}>
<IconButton
aria-label={ariaLabel}
as="div"
as={Link}
href={href}
icon={<Icon boxSize={boxSize} as={icon} />}
isActive={isActive}
size={size}
title={ariaLabel}
/>
</Link>
);
}

Expand Down

0 comments on commit 77d0538

Please sign in to comment.