Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
moving from .js stories to .tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
pellicceama committed Oct 25, 2024
1 parent fc04453 commit c6603f9
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default {
args: {onApply: fn()},
}

// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Primary = {
args: {
options: ['Accounting', 'ATS', 'Banking', 'Database'],
Expand Down
32 changes: 0 additions & 32 deletions packages/ui/stories/Tabs.stories.js

This file was deleted.

28 changes: 28 additions & 0 deletions packages/ui/stories/Tabs.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import {Tabs} from '../components/Tabs'

export default {
title: 'Example/Tabs',
component: Tabs,
argTypes: {
tabConfig: {control: 'object'},
defaultValue: {control: 'text'},
},
}

export const Primary = {
args: {
tabConfig: [
{
key: 'connections',
title: 'Connections',
content: <div>Content1</div>,
},
{
key: 'settings',
title: 'Settings',
content: <div>Content2</div>,
},
],
defaultValue: 'connections',
}
}

0 comments on commit c6603f9

Please sign in to comment.