Skip to content

Commit

Permalink
refactor(#10336): remove hatches
Browse files Browse the repository at this point in the history
  • Loading branch information
acid-chicken committed Mar 20, 2023
1 parent 6e21147 commit be7b71a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/.storybook/generate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function toStories(component: string): string {
properties={[
<property
key={<identifier name="layout" />}
value={<literal value={`${dir}/`.startsWith('src/pages/') || base === 'MkAnalogClock.vue' ? 'fullscreen' : 'centered'} />}
value={<literal value={`${dir}/`.startsWith('src/pages/') ? 'fullscreen' : 'centered'} />}
kind="init"
/>,
...hasMsw
Expand Down
14 changes: 14 additions & 0 deletions packages/frontend/src/components/MkAnalogClock.stories.impl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export const Default = {
render(args, { argTypes }) {
return {
components: {
MkAnalogClock,
},
props: Object.keys(argTypes),
template: '<MkAnalogClock v-bind="$props" />',
};
},
parameters: {
layout: 'fullscreen',
},
};

0 comments on commit be7b71a

Please sign in to comment.