Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace as with satisfies in stories files #440

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/addressBadge/AddressBadge.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
control: { type: 'range', min: 3, max: 21, step: 1 },
},
},
} as Meta
} satisfies Meta

export const Basic: StoryFn<AddressBadgeProps> = (props) => (
<AddressBadge {...props} />
Expand Down
2 changes: 1 addition & 1 deletion packages/block/Block.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ export default {
control: 'inline-radio',
},
},
} as Meta
} satisfies Meta

export const Basic: StoryFn<BlockProps> = (props) => <Block {...props} />
2 changes: 1 addition & 1 deletion packages/button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default {
control: 'inline-radio',
},
},
} as Meta
} satisfies Meta

export const Basic: StoryFn<ButtonProps> = (props) => <Button {...props} />

Expand Down
2 changes: 1 addition & 1 deletion packages/container/Container.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
parameters: {
layout: 'fullscreen',
},
} as Meta
} satisfies Meta

const StyledDiv = styled.div`
height: 100px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
args: {
themeOverride: 'follow cookie and system',
},
} as Meta
} satisfies Meta

export const Providers: StoryFn = () => (
<>
Expand Down
2 changes: 1 addition & 1 deletion packages/heading/Heading.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default {
control: 'inline-radio',
},
},
} as Meta
} satisfies Meta

export const Basic: StoryFn<HeadingProps> = (props) => <Heading {...props} />

Expand Down
2 changes: 1 addition & 1 deletion packages/icons/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const iconKeys = Object.keys(components) as IconVariants[]

export default {
title: 'Images/Icons',
} as Meta
} satisfies Meta

export const Base: StoryFn<{ color: string; type: IconVariants }> = (props) => {
const { color, type } = props
Expand Down
2 changes: 1 addition & 1 deletion packages/input/Textarea.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
table: { disable: true },
},
},
} as Meta
} satisfies Meta

export const Basic: StoryFn<TextareaProps> = (props) => <Textarea {...props} />

Expand Down
2 changes: 1 addition & 1 deletion packages/popover/Popover.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default {
table: { disable: true },
},
},
} as Meta
} satisfies Meta

export const Basic: StoryFn<PopoverProps> = (props) => {
const { onClose } = props
Expand Down
2 changes: 1 addition & 1 deletion packages/popup-menu/PopupMenu.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
control: 'inline-radio',
},
},
} as Meta
} satisfies Meta

const usePopup = (props: PopupMenuProps) => {
const { onClose } = props
Expand Down
2 changes: 1 addition & 1 deletion packages/stack/Stack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default {
control: 'inline-radio',
},
},
} as Meta
} satisfies Meta

export const Basic: StoryFn<StackProps> = (props) => (
<Stack {...props}>
Expand Down