sforkowany z mirror/soapbox
				
			Toast.stories: update Template for new preview
							rodzic
							
								
									be2543f7ec
								
							
						
					
					
						commit
						5c0e254a0f
					
				| 
						 | 
					@ -1,6 +1,5 @@
 | 
				
			||||||
import { ComponentStory, ComponentMeta } from '@storybook/react';
 | 
					import { ComponentStory, ComponentMeta } from '@storybook/react';
 | 
				
			||||||
import React from 'react';
 | 
					import React from 'react';
 | 
				
			||||||
import { IntlProvider } from 'react-intl';
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { Toast } from 'soapbox/components/ui';
 | 
					import { Toast } from 'soapbox/components/ui';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,11 +14,7 @@ export default {
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
} as ComponentMeta<typeof Toast>;
 | 
					} as ComponentMeta<typeof Toast>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const Template: ComponentStory<typeof Toast> = (args) => (
 | 
					const Template: ComponentStory<typeof Toast> = (args) => <Toast {...args} />;
 | 
				
			||||||
  <IntlProvider locale='en'>
 | 
					 | 
				
			||||||
    <Toast {...args} />
 | 
					 | 
				
			||||||
  </IntlProvider>
 | 
					 | 
				
			||||||
);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const Success = Template.bind({});
 | 
					export const Success = Template.bind({});
 | 
				
			||||||
Success.args = {
 | 
					Success.args = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Ładowanie…
	
		Reference in New Issue