Upgrade Storybook

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
Jamie Kyle 2023-10-11 12:06:43 -07:00 committed by GitHub
parent 8c966dfbd8
commit 502ea174ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
328 changed files with 10863 additions and 12432 deletions

View file

@ -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',
};