Skip to content

Commit

Permalink
Merge branch 'dev' into design/254-mypage-mobile-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
WonJuneKim authored Dec 28, 2024
2 parents 97765df + a7bac45 commit 4628562
Show file tree
Hide file tree
Showing 204 changed files with 4,368 additions and 3,512 deletions.
1 change: 1 addition & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const config: StorybookConfig = {
'@storybook/addon-essentials',
'@chromatic-com/storybook',
'@storybook/addon-interactions',
'@storybook/addon-viewport',
],
framework: {
name: '@storybook/react-webpack5',
Expand Down
21 changes: 20 additions & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
import type { Preview } from '@storybook/react';
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
import '../src/styles/reset.css';

const customViewports = {
mobile: {
name: 'mobile',
styles: {
width: '430px',
height: '400px',
},
type: 'mobile',
},
};


const preview: Preview = {
parameters: {
controls: {
Expand All @@ -9,7 +22,13 @@ const preview: Preview = {
date: /Date$/i,
},
},
viewport: {
viewports: {
...INITIAL_VIEWPORTS,
...customViewports
},
},
},
};

export default preview;
export default preview;
Loading

0 comments on commit 4628562

Please sign in to comment.