Skip to content

Commit

Permalink
refactor: fix typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
itwillwork committed May 24, 2024
1 parent 785bc3a commit 450844b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Alert/__stories__/Alert.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Default: Story = {
},
};

const themeCases: Array<AlertProps['theme']> = [
const themeCases: Array<NonNullable<AlertProps['theme']>> = [
'normal',
'info',
'success',
Expand Down Expand Up @@ -56,7 +56,7 @@ export const CustomIcon: Story = {
},
};

const cornersCases: Array<AlertProps['corners']> = ['rounded', 'square'];
const cornersCases: Array<NonNullable<AlertProps['corners']>> = ['rounded', 'square'];

export const Corners: Story = {
render: (args) => (
Expand All @@ -73,7 +73,7 @@ export const Corners: Story = {
},
};

const viewCases: Array<AlertProps['view']> = ['filled', 'outlined'];
const viewCases: Array<NonNullable<AlertProps['view']>> = ['filled', 'outlined'];

export const View: Story = {
render: (args) => (
Expand All @@ -90,7 +90,7 @@ export const View: Story = {
},
};

const layoutCases: Array<AlertProps['layout']> = ['vertical', 'horizontal'];
const layoutCases: Array<NonNullable<AlertProps['layout']>> = ['vertical', 'horizontal'];

export const Layout: Story = {
render: (args) => (
Expand Down Expand Up @@ -145,7 +145,7 @@ export const Actions: Story = {
},
};

const alignCases: Array<AlertProps['align']> = ['center', 'baseline'];
const alignCases: Array<NonNullable<AlertProps['align']>> = ['center', 'baseline'];

export const Align: Story = {
render: (args) => (
Expand Down

0 comments on commit 450844b

Please sign in to comment.