Toast.stories: update Template for new preview

toast-story
Alex Gleason 2023-02-08 10:28:56 -06:00
rodzic be2543f7ec
commit 5c0e254a0f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 6 usunięć

Wyświetl plik

@ -1,6 +1,5 @@
import { ComponentStory, ComponentMeta } from '@storybook/react';
import React from 'react';
import { IntlProvider } from 'react-intl';
import { Toast } from 'soapbox/components/ui';
@ -15,11 +14,7 @@ export default {
},
} as ComponentMeta<typeof Toast>;
const Template: ComponentStory<typeof Toast> = (args) => (
<IntlProvider locale='en'>
<Toast {...args} />
</IntlProvider>
);
const Template: ComponentStory<typeof Toast> = (args) => <Toast {...args} />;
export const Success = Template.bind({});
Success.args = {