Skip to content

Commit

Permalink
chore: change for build-lint to pass (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: Michel Verhoeven <[email protected]>
  • Loading branch information
Michel-Verhoeven and Michel Verhoeven authored Apr 25, 2024
1 parent f450b83 commit 964c2c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
14 changes: 0 additions & 14 deletions packages/storybook/src/components/button/story-template.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,13 @@ export const argTypes = {
children: {
name: 'Content',
description: 'Button text',
type: {
name: 'string',
required: true,
},
defaultValue: '',
},
appearance: {
name: 'Variation',
description: 'Button variations',
control: { type: 'select' },
options: ['Default', 'Primary', 'Secondary', 'Subtle'],
type: {
name: 'function',
required: false,
},
table: {
type: {
summary: ['string'],
Expand Down Expand Up @@ -46,12 +38,6 @@ export const defaultArgs = {
icon: 'None',
};

// const Button = ({ children }: PropsWithChildren<{}>) => (
// <button className="utrecht-button" type="button">
// {children}
// </button>
// );

export const Button = ({ children, appearance = defaultArgs.appearance, state = defaultArgs.state, ...restProps }) => {
return (
<button
Expand Down
3 changes: 2 additions & 1 deletion packages/storybook/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"src/**/*.ts",
"src/**/*.tsx",
"vite.config.ts",
"src/components/button/button.stories.mdx"
"src/components/button/button.stories.mdx",
"src/components/button/button.stories.jsx"
],
"exclude": ["**/node_modules/*"]
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"sourceMap": true,
"strict": true,
"target": "es2020",
"jsx": "react"
"jsx": "react",
"allowJs": true
},
"exclude": ["**/node_modules/*"]
}

0 comments on commit 964c2c4

Please sign in to comment.