Skip to content

Commit

Permalink
fix: removed palette entry in storybook for Button
Browse files Browse the repository at this point in the history
  • Loading branch information
vantaboard committed Sep 27, 2021
1 parent 6231ba1 commit 2bb283d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 26 deletions.
20 changes: 20 additions & 0 deletions src/stories/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Story, Meta } from '@storybook/react';
import React from 'react';
import Button from '../components/Elements/Button';
import { ButtonProps } from '../components/Elements/Button/interface';
// Button.stories.ts | Button.stories.tsx

export default {
component: Button,
title: 'Components/Button',
} as Meta;

//👇 We create a “template” of how args map to rendering
const Template: Story<ButtonProps> = (args) => <Button {...args} />;

export const Primary = Template.bind({});

Primary.args = {
primary: true,
label: 'Button',
};
2 changes: 0 additions & 2 deletions src/stories/Introduction.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Meta } from '@storybook/addon-docs';
import Button from '../components/Elements/Button';
import { Center } from './Palette.styles';

<Meta title='Introduction' />

Expand Down
17 changes: 0 additions & 17 deletions src/stories/Palette.stories.mdx

This file was deleted.

7 changes: 0 additions & 7 deletions src/stories/Palette.styles.ts

This file was deleted.

0 comments on commit 2bb283d

Please sign in to comment.