1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +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:
Dhruv 2023-06-21 03:46:19 +05:30 committed by GitHub
parent ab0374d48a
commit bc1a15a0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 59 additions and 0 deletions

View File

@ -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';

View File

@ -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';