Skip to content

Commit

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

Expand Down

0 comments on commit db297c1

Please # to comment.