File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
apps/storybook/src/stories Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 11import type { Meta , StoryObj } from '@storybook/react' ;
22import { Renderer , NotionBlock } from 'notion-to-jsx' ;
33import notionBlocks from '../sample-data/notionBlocks.json' ;
4+ import notionProperties from '../sample-data/notionProperties.json' ;
45
56const meta = {
67 title : 'Components/Renderer' ,
@@ -29,13 +30,17 @@ export const Default: Story = {
2930 args : {
3031 blocks : notionBlocks as NotionBlock [ ] , // JSON 파일에서 불러온 블록 데이터 사용
3132 isDarkMode : false ,
33+ title : notionProperties . Name ,
34+ cover : notionProperties . coverUrl ,
3235 } ,
3336} ;
3437
3538export const DarkMode : Story = {
3639 args : {
3740 blocks : notionBlocks as NotionBlock [ ] , // JSON 파일에서 불러온 블록 데이터 사용
3841 isDarkMode : true ,
42+ title : notionProperties . Name ,
43+ cover : notionProperties . coverUrl ,
3944 } ,
4045 decorators : [
4146 ( Story ) => (
You can’t perform that action at this time.
0 commit comments