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

@ -3,7 +3,8 @@
import * as React from 'react';
import { action } from '@storybook/addon-actions';
import type { Meta } from '@storybook/react';
import type { Props } from './SafetyNumberChangeDialog';
import { SafetyNumberChangeDialog } from './SafetyNumberChangeDialog';
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
import { setupI18n } from '../util/setupI18n';
@ -57,7 +58,7 @@ const useTheme = () => React.useContext(StorybookThemeContext);
export default {
title: 'Components/SafetyNumberChangeDialog',
};
} satisfies Meta<Props>;
export function SingleContactDialog(): JSX.Element {
const theme = useTheme();
@ -162,9 +163,6 @@ export function AllVerified(): JSX.Element {
/>
);
}
AllVerified.story = {
name: 'All verified; Send button instead',
};
export function MultipleContactsAllWithBadges(): JSX.Element {
const theme = useTheme();
@ -195,10 +193,6 @@ export function MultipleContactsAllWithBadges(): JSX.Element {
);
}
MultipleContactsAllWithBadges.story = {
name: 'Multiple contacts, all with badges',
};
export function TenContacts(): JSX.Element {
const theme = useTheme();
return (
@ -234,10 +228,6 @@ export function TenContacts(): JSX.Element {
);
}
TenContacts.story = {
name: 'Ten contacts; first isReviewing = false, then scrolling dialog',
};
export function NoContacts(): JSX.Element {
const theme = useTheme();
return (