Skip to content

Commit

Permalink
fix tab links in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Mar 13, 2024
1 parent 7bf8d2c commit 330d229
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
16 changes: 0 additions & 16 deletions packages/examples/stories/docs/advanced/TabLink.jsx

This file was deleted.

9 changes: 4 additions & 5 deletions packages/examples/stories/docs/advanced/docs.mdx
Expand Up @@ -3,7 +3,6 @@ import { TabsState } from "@storybook/components";

import { Figma } from "@storybook/addon-designs/blocks";

import { TabLink } from "./TabLink";
import * as AdvancedStories from "./index.stories";

<Meta of={AdvancedStories} />
Expand Down Expand Up @@ -99,10 +98,10 @@ The addon can render contents to `Design` tab instead of in an addon panel.
To do this, you need to set `"tab"` to a `renderTarget` preset option.
The default value is `"panel"`.

<TabLink
tabItem={<a href="/">Go back to panel mode</a>}
panelItem={<a href="/tab/">Go to tab mode</a>}
/>
{location.pathname.startsWith('/tab/')
? <a href="../?path=/docs/docs-advanced-usage--docs" onClick={undefined}>Go back to panel mode</a>
: <a href="./tab/?path=/docs/docs-advanced-usage--docs" onClick={undefined}>Go to tab mode</a>
}

```ts
// .storybook/main.ts
Expand Down

0 comments on commit 330d229

Please sign in to comment.