mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
* replacing deprecated * replacing deprecated --------- Co-authored-by: Brad Decker <bhdecker84@gmail.com>
This commit is contained in:
parent
d09c8bd492
commit
80de5ceed4
@ -1,11 +1,11 @@
|
||||
import React from 'react';
|
||||
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||||
import { StoryFn, Meta } from '@storybook/react';
|
||||
|
||||
import {
|
||||
TextVariant,
|
||||
TextAlign,
|
||||
DISPLAY,
|
||||
FLEX_DIRECTION,
|
||||
Display,
|
||||
FlexDirection,
|
||||
AlignItems,
|
||||
JustifyContent,
|
||||
} from '../../../helpers/constants/design-system';
|
||||
@ -32,16 +32,16 @@ export default {
|
||||
args: {
|
||||
children: 'ModalHeader',
|
||||
},
|
||||
} as ComponentMeta<typeof ModalHeader>;
|
||||
} as Meta<typeof ModalHeader>;
|
||||
|
||||
const Template: ComponentStory<typeof ModalHeader> = (args) => {
|
||||
const Template: StoryFn<typeof ModalHeader> = (args) => {
|
||||
return <ModalHeader {...args} />;
|
||||
};
|
||||
|
||||
export const DefaultStory = Template.bind({});
|
||||
DefaultStory.storyName = 'Default';
|
||||
|
||||
export const Children: ComponentStory<typeof ModalHeader> = (args) => (
|
||||
export const Children: StoryFn<typeof ModalHeader> = (args) => (
|
||||
<>
|
||||
<ModalHeader {...args} marginBottom={4}>
|
||||
Children as string
|
||||
@ -49,8 +49,8 @@ export const Children: ComponentStory<typeof ModalHeader> = (args) => (
|
||||
<ModalHeader
|
||||
{...args}
|
||||
childrenWrapperProps={{
|
||||
display: DISPLAY.FLEX,
|
||||
flexDirection: FLEX_DIRECTION.COLUMN,
|
||||
display: Display.Flex,
|
||||
flexDirection: FlexDirection.Column,
|
||||
alignItems: AlignItems.center,
|
||||
justifyContent: JustifyContent.center,
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user