diff --git a/canvas/src/App.tsx b/canvas/src/App.tsx index 1cb1ff66..e9d0a188 100644 --- a/canvas/src/App.tsx +++ b/canvas/src/App.tsx @@ -87,7 +87,7 @@ import { installCanvasComments, readCommentUser } from "./canvasComments"; import { CanvasChromeContext, canvasChromeComponents, - canvasCommentOverrides, + canvasUiOverrides, canvasCommentTools, } from "./canvasChrome"; @@ -1398,7 +1398,7 @@ export default function App() { store={store} shapeUtils={shapeUtils} tools={canvasCommentTools} - overrides={canvasCommentOverrides} + overrides={canvasUiOverrides} licenseKey={TLDRAW_LICENSE_KEY} onMount={handleMount} > diff --git a/canvas/src/CanvasFileShapeUtil.tsx b/canvas/src/CanvasFileShapeUtil.tsx index a6d546a0..d8cbfa06 100644 --- a/canvas/src/CanvasFileShapeUtil.tsx +++ b/canvas/src/CanvasFileShapeUtil.tsx @@ -34,30 +34,7 @@ export type CanvasFileShape = TLShape; function CanvasFile({ shape }: { shape: CanvasFileShape }) { const isEditing = useIsEditing(shape.id); const { inspectingPath, setInspectorFrame } = useContext(CanvasChromeContext); - const loaded = useCanvasFileHtml(shape.props.path); - - /** - * A frame paints an opaque white base background of its own, underneath whatever the board - * draws, and nothing out here reaches it: not `background` on the `