Skip to content

Commit

Permalink
feat: add padding noop decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
mere1y committed Jul 9, 2023
1 parent a617a5c commit af57ba4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/shared/decorators/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './padding.decorator';
8 changes: 8 additions & 0 deletions src/shared/decorators/padding.decorator.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {StoryFn} from '@storybook/react';

export const PaddingDecorator = (paddingTop: number, paddingBottom: number) => (Story: StoryFn) =>
(
<div style={{paddingTop, paddingBottom}}>
<Story />
</div>
);

0 comments on commit af57ba4

Please sign in to comment.