Skip to content

Commit

Permalink
chore(storybook): remove classNameOverride global arg and remove unde…
Browse files Browse the repository at this point in the history
…fined from controls
  • Loading branch information
HeartSquared committed Sep 13, 2023
1 parent 2faae9e commit 271ddd7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const config = {
reactDocgenTypescriptOptions: {
skipChildrenPropWithoutDoc: false,
shouldExtractLiteralValuesFromEnum: true,
shouldRemoveUndefinedFromOptional: true,
propFilter: (prop): boolean => {
const isHTMLElementProp =
prop.parent?.fileName.includes("node_modules/@types/react") ?? false
Expand Down
7 changes: 0 additions & 7 deletions storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,6 @@ const preview = {
},
globalTypes,
decorators,
argTypes: {
classNameOverride: {
type: "string",
description:
"Add extra classnames to the component. Try out some Tailwind classes (eg. `!mb-48`) to see!",
},
},
} satisfies Preview

export default preview

0 comments on commit 271ddd7

Please sign in to comment.