Skip to content

Commit

Permalink
added redesign storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiKJha committed Feb 22, 2023
1 parent 84aff7c commit f355194
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/components/redesign/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { TokenList } from './token-list';
Empty file.
Empty file.
1 change: 1 addition & 0 deletions ui/components/redesign/token-list/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { TokenList } from './token-list';
13 changes: 13 additions & 0 deletions ui/components/redesign/token-list/token-list.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';
import Box from '../../ui/box/box';

export const TokenList = () => {
return <Box>Token List</Box>;
};

TokenList.propTypes = {
/**
* TokenList also accepts all props from Box
*/
...Box.propTypes,
};
17 changes: 17 additions & 0 deletions ui/components/redesign/token-list/token-list.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import README from './README.mdx';
import { TokenList } from './token-list';

export default {
title: 'Components/Redesign/TokenList',
component: TokenList,
parameters: {
docs: {
page: README,
},
},
};

export const DefaultStory = () => <TokenList />;

DefaultStory.storyName = 'Default';
1 change: 1 addition & 0 deletions ui/css/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@import './utilities/colors.scss';
@import './base-styles.scss';
@import '../components/component-library/component-library-components.scss';
@import '../components/redesign/redesign-components.scss';
@import '../components/app/app-components';
@import '../components/ui/ui-components';
@import '../pages/pages';
Expand Down

0 comments on commit f355194

Please sign in to comment.