Remove TLDraw from embed menu as it no longer supports embedding

This commit is contained in:
Tom Moor
2022-10-11 21:47:39 -04:00
parent 21b91ff060
commit 5654c312b1
2 changed files with 2 additions and 1 deletions

View File

@@ -427,7 +427,7 @@ class CommandMenu<T = MenuItem> extends React.Component<Props<T>, State> {
const embedItems: EmbedDescriptor[] = [];
for (const embed of embeds) {
if (embed.title) {
if (embed.title && embed.visible !== false) {
embedItems.push(
new EmbedDescriptor({
...embed,

View File

@@ -353,6 +353,7 @@ const embeds: EmbedDescriptor[] = [
new EmbedDescriptor({
title: "Tldraw",
keywords: "draw schematics diagrams",
visible: false,
icon: () => <Img src="/images/tldraw.png" alt="Tldraw" />,
component: Tldraw,
}),