Conditional showing of page icons checkbox

This commit is contained in:
Ryan Palmer
2024-09-04 15:34:15 +10:00
parent 9a11d1d086
commit 0475635dbf

View File

@ -104,6 +104,7 @@ export function TableOfContentsMenu({ editor }: EditorMenuProps) {
onChange={(value: "Contents" | "Child Pages") => setTableType(value)}
/>
</Tooltip>
{editor.getAttributes("tableOfContents").tableType == "Child Pages" && (
<Tooltip position="top" label="Show page icons">
<Group gap="xs">
<Text size="sm">Page Icons</Text>
@ -113,6 +114,7 @@ export function TableOfContentsMenu({ editor }: EditorMenuProps) {
/>
</Group>
</Tooltip>
)}
</Group>
</Fieldset>
</BaseBubbleMenu>