diff --git a/src/components/primitives/Tabs.tsx b/src/components/primitives/Tabs.tsx index 789892eb..83cc675b 100644 --- a/src/components/primitives/Tabs.tsx +++ b/src/components/primitives/Tabs.tsx @@ -33,7 +33,7 @@ import { Link, useLocation } from "@remix-run/react"; -import { type ReactNode } from "react"; +import type { ReactNode } from "react"; import { type VariantProps, tv } from "tailwind-variants"; import { Container } from "../.."; import useThemableProps from "../../hooks/theming/useThemableProps"; @@ -147,32 +147,38 @@ export default function Tabs({ look, size, to, theme, className, tabs = [], ...p {tabs.map(tab => { - const relativeUrl = tab.link.split("?")[0]; + const relativeUrl = tab.link.split("?")[0]; - return ( - <> - {tab.link ? ( - - - {tab.label} - - - ) : ( - - )} - - ); - })} + return ( + <> + {tab.link ? ( + + + {tab.label} + + + ) : ( + + )} + + ); + })} + );