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
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue