diff --git a/src/components/SwitcherItem.tsx b/src/components/SwitcherItem.tsx index 1117e2b4..a0968936 100644 --- a/src/components/SwitcherItem.tsx +++ b/src/components/SwitcherItem.tsx @@ -8,6 +8,7 @@ export default function SwitcherItem({ onClick, active, noPadding, + prefetch = false, }: { icon: JSX.Element href?: string @@ -15,6 +16,7 @@ export default function SwitcherItem({ onClick?: () => void active?: boolean noPadding?: boolean + prefetch?: boolean }) { const className = clsx( classNameProp, @@ -38,7 +40,9 @@ export default function SwitcherItem({ return ( href - ? {renderIcon()} + ? + {renderIcon()} + :