Skip to content

Commit

Permalink
fix: clean code and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
caro3801 committed Jul 1, 2024
1 parent 4ad1a53 commit 6d26bb0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 25 deletions.
14 changes: 8 additions & 6 deletions src/stories/basics/Button.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BButton, BCloseButton } from 'bootstrap-vue-next'
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories

export default {
title: 'Components/Button',
title: 'Basics/Button',
component: BButton,
tags: ['autodocs'],
argTypes: {
Expand All @@ -26,11 +26,13 @@ export default {
template: `
<table>
<thead>
<th>State</th>
<th>Base</th>
<th>Primary</th>
<th>Secondary</th>
<th>Tertiary</th>
<tr>
<th>State</th>
<th>Base</th>
<th>Primary</th>
<th>Secondary</th>
<th>Tertiary</th>
</tr>
</thead>
<tr>
<td>Default </td>
Expand Down
7 changes: 1 addition & 6 deletions src/stories/basics/Colors.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import { BButton, BCloseButton } from 'bootstrap-vue-next'

// More on how to set up stories at: https://storybook.js.org/docs/writing-stories

export default {
title: 'Basics/Colors',
render: (args) => ({
Expand Down Expand Up @@ -30,5 +26,4 @@ export default {
}

// // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Default = {
}
export const Default = {}
2 changes: 0 additions & 2 deletions src/stories/basics/Icon.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { fn } from '@storybook/test'

import Icon from '@/components/Icon.vue'

// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
Expand Down
12 changes: 1 addition & 11 deletions src/stories/basics/Text.stories.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
export default {
title: 'Basics/Text',
argTypes: {
size: { control: { type: 'select' }, options: ['sm', 'md', 'lg'] },
variant: { control: { type: 'select' }, options: ['primary', 'secondary', 'tertiary', 'light'] }
},
render: (args) => ({
// Components used in your story `template` are defined in the `components` object
components: {},
Expand All @@ -25,10 +21,4 @@ export default {
}

// // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
export const Default = {
args: {
variant: '',
size: 'sm',
label: 'Button'
}
}
export const Default = {}

0 comments on commit 6d26bb0

Please sign in to comment.