Skip to content

Commit

Permalink
feat(Tabs)!: combine Tab sub-component into Tabs
Browse files Browse the repository at this point in the history
- update imports, tests, and usages in Tabs
- update usage in WireframeDemo
- clean up snapshots
  • Loading branch information
booc0mtaco committed Feb 27, 2024
1 parent 2538aa6 commit 0479863
Show file tree
Hide file tree
Showing 7 changed files with 161 additions and 176 deletions.
13 changes: 6 additions & 7 deletions .storybook/pages/WireframeDemo/WireframeDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
Link,
Select,
Tabs,
Tab,
Text,
Tooltip,
} from '../../../src';
Expand Down Expand Up @@ -221,26 +220,26 @@ const WatchPage = ({ onLogout }: { onLogout: () => void }) => {
</div>

<Tabs className="mt-4">
<Tab title="All (3)">
<Tabs.Tab title="All (3)">
<div className="flex">
<StudentTab active studentName="Mikaela" />
<StudentTab studentName="Cesar" />
<StudentTab studentName="Truman" />
</div>
</Tab>
</Tabs.Tab>

<Tab title="New (1)">
<Tabs.Tab title="New (1)">
<div className="flex">
<StudentTab active studentName="Mikaela" />
</div>
</Tab>
</Tabs.Tab>

<Tab title="Open (2)">
<Tabs.Tab title="Open (2)">
<div className="flex">
<StudentTab studentName="Cesar" />
<StudentTab studentName="Truman" />
</div>
</Tab>
</Tabs.Tab>
</Tabs>
</div>

Expand Down
91 changes: 0 additions & 91 deletions src/components/Tab/Tab.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/Tab/index.ts

This file was deleted.

Loading

0 comments on commit 0479863

Please sign in to comment.