Upgrade Storybook
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
8c966dfbd8
commit
502ea174ab
328 changed files with 10863 additions and 12432 deletions
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as React from 'react';
|
||||
import type { Meta, Story } from '@storybook/react';
|
||||
import type { Meta, StoryFn } from '@storybook/react';
|
||||
import { action } from '@storybook/addon-actions';
|
||||
|
||||
import { setupI18n } from '../../util/setupI18n';
|
||||
|
@ -35,10 +35,10 @@ export default {
|
|||
},
|
||||
},
|
||||
},
|
||||
} as Meta;
|
||||
} satisfies Meta<ScrollDownButtonPropsType>;
|
||||
|
||||
// eslint-disable-next-line react/function-component-definition
|
||||
const Template: Story<ScrollDownButtonPropsType> = args => (
|
||||
const Template: StoryFn<ScrollDownButtonPropsType> = args => (
|
||||
<ScrollDownButton {...args} />
|
||||
);
|
||||
|
||||
|
@ -46,14 +46,8 @@ export const UnreadMessages = Template.bind({});
|
|||
UnreadMessages.args = createProps({
|
||||
variant: ScrollDownButtonVariant.UNREAD_MESSAGES,
|
||||
});
|
||||
UnreadMessages.story = {
|
||||
name: 'UnreadMessages',
|
||||
};
|
||||
|
||||
export const UnreadMentions = Template.bind({});
|
||||
UnreadMentions.args = createProps({
|
||||
variant: ScrollDownButtonVariant.UNREAD_MENTIONS,
|
||||
});
|
||||
UnreadMentions.story = {
|
||||
name: 'UnreadMentions',
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue