Skip to content

Commit

Permalink
replace old tabs with new tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
abottega committed Sep 25, 2024
1 parent 0ee4823 commit 7f5b5a7
Show file tree
Hide file tree
Showing 9 changed files with 268 additions and 575 deletions.
27 changes: 0 additions & 27 deletions lib/components/Tabs/Tab.mdx

This file was deleted.

75 changes: 0 additions & 75 deletions lib/components/Tabs/Tab.stories.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Story, Controls, Meta, Canvas } from "@storybook/addon-docs";
import Tabs from ".";
import * as stories from "./TabsV2.stories";
import * as stories from "./Tabs.stories";

<Meta of={stories} />

Expand All @@ -12,7 +12,7 @@ Tabs are intended to provide a way to navigate between distinct sections within

## Default Tabs

<Canvas of={stories.defaultTabsV2} />
<Canvas of={stories.defaultTabs} />

## Properties

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import React from "react";
import TabsV2 from ".";
import Tabs from ".";
import { BrowserRouter, Route, Switch } from "react-router-dom";
import Box from "../Box";

export default {
title: "Components/TabsV2",
title: "Components/Tabs",
decorators: [
(storyFn) => (
<Box bg="greyLightest" p="xl" pb="300px">
{storyFn()}
</Box>
)
],
component: TabsV2
component: Tabs
};

const tabsList = [
Expand Down Expand Up @@ -54,9 +54,9 @@ const tabsList = [
}
];

export const defaultTabsV2 = () => (
export const defaultTabs = () => (
<BrowserRouter>
<TabsV2 tabsList={tabsList} />
<Tabs tabsList={tabsList} />
<Switch>
{tabsList.map((tab) => (
<Route key={tab.path} path={tab.path}>
Expand All @@ -68,4 +68,4 @@ export const defaultTabsV2 = () => (
</Switch>
</BrowserRouter>
);
defaultTabsV2.storyName = "Default";
defaultTabs.storyName = "Default";
17 changes: 0 additions & 17 deletions lib/components/Tabs/TabsContainer.mdx

This file was deleted.

42 changes: 0 additions & 42 deletions lib/components/Tabs/TabsContainer.stories.js

This file was deleted.

Loading

0 comments on commit 7f5b5a7

Please sign in to comment.