Skip to content

Commit

Permalink
review: tidy based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
dpnova committed Dec 6, 2024
1 parent f623147 commit 1eeb103
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions .changeset/odd-radios-smoke.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,14 @@ function RemoteSelection({
);
}

type RemoteCursorsProps = PropsWithChildren<{
className?: string;
}>;

export function RemoteCursorOverlay({ children }: RemoteCursorsProps) {
export function RemoteCursorOverlay() {
const containerRef = useEditorContainerRef();
const [cursors] = useRemoteCursorOverlayPositions<CursorData>({
containerRef,
});

return (
<>
{children}
{cursors.map((cursor) => (
<RemoteSelection key={cursor.clientId} {...cursor} />
))}
Expand Down

0 comments on commit 1eeb103

Please sign in to comment.