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 1
1
import type { Meta , StoryObj } from '@storybook/react' ;
2
2
import { Renderer , NotionBlock } from 'notion-to-jsx' ;
3
3
import notionBlocks from '../sample-data/notionBlocks.json' ;
4
+ import notionProperties from '../sample-data/notionProperties.json' ;
4
5
5
6
const meta = {
6
7
title : 'Components/Renderer' ,
@@ -29,13 +30,17 @@ export const Default: Story = {
29
30
args : {
30
31
blocks : notionBlocks as NotionBlock [ ] , // JSON 파일에서 불러온 블록 데이터 사용
31
32
isDarkMode : false ,
33
+ title : notionProperties . Name ,
34
+ cover : notionProperties . coverUrl ,
32
35
} ,
33
36
} ;
34
37
35
38
export const DarkMode : Story = {
36
39
args : {
37
40
blocks : notionBlocks as NotionBlock [ ] , // JSON 파일에서 불러온 블록 데이터 사용
38
41
isDarkMode : true ,
42
+ title : notionProperties . Name ,
43
+ cover : notionProperties . coverUrl ,
39
44
} ,
40
45
decorators : [
41
46
( Story ) => (
You can’t perform that action at this time.
0 commit comments