diff --git a/src/plugins/Title/Title.tsx b/src/plugins/Title/Title.tsx index 795e1f1..8d990ba 100644 --- a/src/plugins/Title/Title.tsx +++ b/src/plugins/Title/Title.tsx @@ -11,7 +11,7 @@ import './Title.scss'; export interface PluginTitleProps extends PluginWidgetProps { data: { text: string; - showInTOC: boolean; + showInTOC?: boolean; } & TitleFontDataProps & PluginWidgetProps['data']; } diff --git a/src/plugins/Title/__stories__/Title.stories.tsx b/src/plugins/Title/__stories__/Title.stories.tsx index 60081ca..e630df0 100644 --- a/src/plugins/Title/__stories__/Title.stories.tsx +++ b/src/plugins/Title/__stories__/Title.stories.tsx @@ -20,10 +20,7 @@ export const Size: Story = { {sizes.map((size) => ( - + ))} @@ -32,7 +29,6 @@ export const Size: Story = { fontSize: 40, lineHeight: 100, text: `Title fontSize=40, lineHeight=100`, - showInTOC: true, }} {...args} /> @@ -43,7 +39,6 @@ export const Size: Story = { size: 'l', fontSize: 40, text: `Title size=l, fontSize=40`, - showInTOC: true, }} {...args} /> @@ -55,7 +50,6 @@ export const Size: Story = { fontSize: 40, lineHeight: 20, text: `Title size=l, fontSize=40, lineHeight=20 🤷`, - showInTOC: true, }} {...args} /> @@ -67,7 +61,6 @@ export const Size: Story = { fontSize: 40, lineHeight: 70, text: `Title size=l, fontSize=40, lineHeight=70`, - showInTOC: true, }} {...args} /> @@ -78,7 +71,6 @@ export const Size: Story = { size: 'l', lineHeight: 70, text: `Title size=l, lineHeight=70`, - showInTOC: true, }} {...args} /> @@ -88,7 +80,6 @@ export const Size: Story = { data={{ fontSize: 40, text: `Title fontSize=40`, - showInTOC: true, }} {...args} /> @@ -107,7 +98,6 @@ export const Default: Story = { data: { size: 'm', text: `Title`, - showInTOC: true, }, }, };