Skip to content

Commit

Permalink
simplify example story
Browse files Browse the repository at this point in the history
  • Loading branch information
lachieh committed Oct 7, 2020
1 parent 2aab20e commit 36bed85
Showing 1 changed file with 3 additions and 7 deletions.
Expand Up @@ -7,18 +7,14 @@ import EnumsComponent, {

export default {
title: 'Enum Types',
component: EnumsComponent,
} as Meta;

const Template: Story<EnumsComponent> = (args) => ({
export const Basic: Story = (args) => ({
component: EnumsComponent,
props: args,
});

export const NoDefaults = Template.bind({});
NoDefaults.args = {};

export const WithDefaults = Template.bind({});
WithDefaults.args = {
Basic.args = {
unionType: 'union a',
aliasedUnionType: 'Type Alias 1',
enumNumeric: EnumNumeric.FIRST,
Expand Down

0 comments on commit 36bed85

Please sign in to comment.