Skip to content

Commit

Permalink
fix: Use named export for exporting Button component
Browse files Browse the repository at this point in the history
  • Loading branch information
amalv committed Mar 11, 2020
1 parent 5f1c4b9 commit 996dee5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/components/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import styled from 'styled-components';

import Button from '@material-ui/core/Button';
import MuiButton from '@material-ui/core/Button';

const StyledButton = styled(Button)`
export const Button = styled(MuiButton)`
font-size: 1em;
margin: 1em;
padding: 0.25em 1em;
border-radius: 3px;
`;

export default StyledButton;
2 changes: 1 addition & 1 deletion src/stories/Button.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { action } from '@storybook/addon-actions';
import { Meta, Story, Preview, Props } from "@storybook/addon-docs/blocks";
import Button from "../components/Button";
import { Button } from "../components";

<Meta title="Material Button" />

Expand Down

1 comment on commit 996dee5

@amalv
Copy link
Owner Author

@amalv amalv commented on 996dee5 Mar 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for website ready!

Built with commit 6b53005f1ae7ccab33eb2bf37c2bd2183040766e

https://circleback-design-system-5cbkuayky.now.sh

Please sign in to comment.