{collaborators.map(collaborator => {
@@ -11,9 +20,18 @@ function Collaborators() {
const initials =
nameParts.length > 1 ? `${nameParts[0][0]}${nameParts[nameParts.length - 1][0]}` : nameParts[0][0];
return (
-
- {initials}
-
+
);
})}
diff --git a/code/client/src/ui/pages/document/components/cursor/Cursor.tsx b/code/client/src/ui/pages/document/components/cursor/Cursor.tsx
index 971e29dc..8d6dd1ff 100644
--- a/code/client/src/ui/pages/document/components/cursor/Cursor.tsx
+++ b/code/client/src/ui/pages/document/components/cursor/Cursor.tsx
@@ -3,17 +3,19 @@ import { InlineStyle } from '@notespace/shared/src/document/types/styles';
import './Cursor.scss';
type CursorProps = {
+ id: string;
color: string;
styles: InlineStyle[];
children: ReactNode;
};
-function Cursor({ children, styles, color }: CursorProps) {
+function Cursor({ children, styles, color, id }: CursorProps) {
const width = styles.includes('bold') ? '1.5px' : '1px';
const angle = styles.includes('italic') ? '11deg' : '0deg';
return (
<>