mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
* added storyblok files to alert and breadcrumbs component * formatted the files * added confusable, i18n, export, hextToDecimal stories * replaced alert class component to functional component * removed i18n story files * added storyblok files to alert and breadcrumbs component * formatted the files * added confusable, i18n, export, hextToDecimal stories * replaced alert class component to functional component * removed i18n story files * added README files to storybook elements and fixed lint issues * added readme files * updated README file for confusable * fixed linting errors in test * removed unwanted tests
34 lines
621 B
JavaScript
34 lines
621 B
JavaScript
import React from 'react';
|
|
import README from './README.mdx';
|
|
import Breadcrumbs from './breadcrumbs.component';
|
|
|
|
export default {
|
|
title: 'Components/UI/Breadcrumbs ',
|
|
id: __filename,
|
|
component: Breadcrumbs,
|
|
parameters: {
|
|
docs: {
|
|
page: README,
|
|
},
|
|
},
|
|
argsTypes: {
|
|
currentIndex: {
|
|
control: 'number',
|
|
},
|
|
total: {
|
|
control: 'number',
|
|
},
|
|
className: { control: 'text' },
|
|
},
|
|
};
|
|
|
|
export const DefaultBreadcrumbs = (args) => {
|
|
return <Breadcrumbs {...args} />;
|
|
};
|
|
|
|
DefaultBreadcrumbs.storyName = 'Default';
|
|
DefaultBreadcrumbs.args = {
|
|
currentIndex: 1,
|
|
total: 3,
|
|
};
|