From 1eeb103f07447785c3f4df6fa569386a9badf8e8 Mon Sep 17 00:00:00 2001 From: "David P. Novakovic" Date: Fri, 6 Dec 2024 19:58:24 +1000 Subject: [PATCH] review: tidy based on review --- .changeset/odd-radios-smoke.md | 5 ----- .../registry/default/plate-ui/remote-cursor-overlay.tsx | 7 +------ 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 .changeset/odd-radios-smoke.md diff --git a/.changeset/odd-radios-smoke.md b/.changeset/odd-radios-smoke.md deleted file mode 100644 index cd58f7aef0..0000000000 --- a/.changeset/odd-radios-smoke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@udecode/plate-yjs': patch ---- - -Add a small component to show remote cursors. diff --git a/apps/www/src/registry/default/plate-ui/remote-cursor-overlay.tsx b/apps/www/src/registry/default/plate-ui/remote-cursor-overlay.tsx index e5babeb8cd..fff8b58140 100644 --- a/apps/www/src/registry/default/plate-ui/remote-cursor-overlay.tsx +++ b/apps/www/src/registry/default/plate-ui/remote-cursor-overlay.tsx @@ -97,11 +97,7 @@ function RemoteSelection({ ); } -type RemoteCursorsProps = PropsWithChildren<{ - className?: string; -}>; - -export function RemoteCursorOverlay({ children }: RemoteCursorsProps) { +export function RemoteCursorOverlay() { const containerRef = useEditorContainerRef(); const [cursors] = useRemoteCursorOverlayPositions({ containerRef, @@ -109,7 +105,6 @@ export function RemoteCursorOverlay({ children }: RemoteCursorsProps) { return ( <> - {children} {cursors.map((cursor) => ( ))}