Skip to content

Commit

Permalink
Change name on tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
alicemacl committed Sep 25, 2024
1 parent 3d5d0df commit 47196a3
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions apps/docs/app/routes/_base.resources.design-tokens/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export default function DesignTokensPage() {
<Tabs
variant={"accent"}
size="md"
isFitted
defaultValue={brand}
onChange={(index: number) => {
const selectedTab = [
Expand All @@ -75,9 +74,15 @@ export default function DesignTokensPage() {
}}
>
<TabList>
<Tab>{Brand.VyDigital}</Tab>
<Tab>{Brand.CargoNet}</Tab>
<Tab>{Brand.VyUtvikling}</Tab>
<Tab width={[null, 100]} value={Brand.VyDigital}>
Vy
</Tab>
<Tab width={[null, 100]} value={Brand.CargoNet}>
{Brand.CargoNet}
</Tab>
<Tab width={[null, 100]} value={Brand.VyUtvikling}>
IT
</Tab>
</TabList>
</Tabs>
</fetcher.Form>
Expand All @@ -86,16 +91,10 @@ export default function DesignTokensPage() {
<Heading as="h2" variant="md" fontWeight="bold">
Color mode
</Heading>
<Tabs
variant={"accent"}
size="md"
isFitted
isLazy
onChange={() => toggleColorMode()}
>
<Tabs variant={"accent"} size="md" onChange={() => toggleColorMode()}>
<TabList>
<Tab>Light</Tab>
<Tab>Dark</Tab>
<Tab width={[null, 100]}>Light</Tab>
<Tab width={[null, 100]}>Dark</Tab>
</TabList>
</Tabs>
</Stack>
Expand Down

0 comments on commit 47196a3

Please sign in to comment.