diff --git a/app/editor/menus/attachment.tsx b/app/editor/menus/attachment.tsx index 2246e1eabf..12fa3c4211 100644 --- a/app/editor/menus/attachment.tsx +++ b/app/editor/menus/attachment.tsx @@ -13,13 +13,11 @@ export default function attachmentMenuItems( name: "replaceAttachment", tooltip: dictionary.replaceAttachment, icon: , - visible: true, }, { name: "deleteAttachment", tooltip: dictionary.deleteAttachment, icon: , - visible: true, }, { name: "separator", diff --git a/app/editor/menus/image.tsx b/app/editor/menus/image.tsx index 035b4f01db..f67796a06c 100644 --- a/app/editor/menus/image.tsx +++ b/app/editor/menus/image.tsx @@ -33,14 +33,12 @@ export default function imageMenuItems( name: "alignLeft", tooltip: dictionary.alignLeft, icon: , - visible: true, active: isLeftAligned, }, { name: "alignCenter", tooltip: dictionary.alignCenter, icon: , - visible: true, active: (state) => isNodeActive(schema.nodes.image)(state) && !isLeftAligned(state) && @@ -51,19 +49,16 @@ export default function imageMenuItems( name: "alignRight", tooltip: dictionary.alignRight, icon: , - visible: true, active: isRightAligned, }, { name: "alignFullWidth", tooltip: dictionary.alignFullWidth, icon: , - visible: true, active: isFullWidthAligned, }, { name: "separator", - visible: true, }, { name: "downloadImage", @@ -75,13 +70,11 @@ export default function imageMenuItems( name: "replaceImage", tooltip: dictionary.replaceImage, icon: , - visible: true, }, { name: "deleteImage", tooltip: dictionary.deleteImage, icon: , - visible: true, }, ]; } diff --git a/app/editor/menus/notice.tsx b/app/editor/menus/notice.tsx index 4faf91399f..3ef1c8b71a 100644 --- a/app/editor/menus/notice.tsx +++ b/app/editor/menus/notice.tsx @@ -39,28 +39,24 @@ export default function noticeMenuItems( name: NoticeTypes.Info, icon: , label: dictionary.infoNotice, - visible: true, active: () => currentStyle === NoticeTypes.Info, }, { name: NoticeTypes.Success, icon: , label: dictionary.successNotice, - visible: true, active: () => currentStyle === NoticeTypes.Success, }, { name: NoticeTypes.Warning, icon: , label: dictionary.warningNotice, - visible: true, active: () => currentStyle === NoticeTypes.Warning, }, { name: NoticeTypes.Tip, icon: , label: dictionary.tipNotice, - visible: true, active: () => currentStyle === NoticeTypes.Tip, }, ], diff --git a/app/menus/NotificationMenu.tsx b/app/menus/NotificationMenu.tsx index e30503b098..ec590bc4ae 100644 --- a/app/menus/NotificationMenu.tsx +++ b/app/menus/NotificationMenu.tsx @@ -24,7 +24,6 @@ const NotificationMenu: React.FC = () => { { type: "button", title: t("Notification settings"), - visible: true, onClick: () => performAction(navigateToNotificationSettings, context), }, ], diff --git a/app/menus/TableOfContentsMenu.tsx b/app/menus/TableOfContentsMenu.tsx index 8ffa9eb691..108e2850cc 100644 --- a/app/menus/TableOfContentsMenu.tsx +++ b/app/menus/TableOfContentsMenu.tsx @@ -28,7 +28,6 @@ function TableOfContentsMenu() { const i = [ { type: "heading", - visible: true, title: t("Contents"), }, ...headings.map((heading) => ({ diff --git a/shared/editor/embeds/index.tsx b/shared/editor/embeds/index.tsx index 6a29fc2462..d5188f7323 100644 --- a/shared/editor/embeds/index.tsx +++ b/shared/editor/embeds/index.tsx @@ -322,7 +322,6 @@ const embeds: EmbedDescriptor[] = [ regexMatch: [new RegExp("^https?://www\\.google\\.com/maps/embed\\?(.*)$")], transformMatch: (matches: RegExpMatchArray) => matches[0], icon: Google Maps, - visible: true, }), new EmbedDescriptor({ title: "Google Drawings",