mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +01:00
Creating stories for LoadingHeartBeat
and LoadingIndicator
(#19495)
* Creating stories * lint fix * Updating LoadingHeartbeat story --------- Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
This commit is contained in:
parent
ab0374d48a
commit
bc1a15a0a3
@ -0,0 +1,28 @@
|
||||
import React from 'react';
|
||||
import LoadingHeartBeat from '.';
|
||||
|
||||
export default {
|
||||
title: 'Components/UI/LoadingHeartBeat',
|
||||
component: LoadingHeartBeat,
|
||||
argTypes: {
|
||||
backgroundColor: {
|
||||
control: 'text',
|
||||
},
|
||||
estimateUsed: {
|
||||
control: 'text',
|
||||
},
|
||||
},
|
||||
args: {
|
||||
backgroundColor: 'var(--color-background-default)',
|
||||
estimateUsed: 'low',
|
||||
},
|
||||
};
|
||||
|
||||
export const DefaultStory = (args) => (
|
||||
<div>
|
||||
<LoadingHeartBeat {...args} />
|
||||
Text underneath LoadingHeartBeat
|
||||
</div>
|
||||
);
|
||||
|
||||
DefaultStory.storyName = 'Default';
|
@ -0,0 +1,31 @@
|
||||
import React from 'react';
|
||||
import LoadingIndicator from './loading-indicator';
|
||||
|
||||
export default {
|
||||
title: 'Components/UI/LoadingIndicator',
|
||||
component: LoadingIndicator,
|
||||
argTypes: {
|
||||
isLoading: {
|
||||
control: 'boolean',
|
||||
},
|
||||
alt: {
|
||||
control: 'text',
|
||||
},
|
||||
title: {
|
||||
control: 'text',
|
||||
},
|
||||
children: {
|
||||
control: 'text',
|
||||
},
|
||||
},
|
||||
args: {
|
||||
isLoading: true,
|
||||
alt: '',
|
||||
title: '',
|
||||
children: '',
|
||||
},
|
||||
};
|
||||
|
||||
export const DefaultStory = (args) => <LoadingIndicator {...args} />;
|
||||
|
||||
DefaultStory.storyName = 'Default';
|
Loading…
Reference in New Issue
Block a user