🐛(frontend) hide cursor for authenticated users

When a authenticated user was in read-only mode,
the cursor was still visible.
This commit hides the cursor for authenticated users
in read-only mode.
This commit is contained in:
Anthony LC
2024-12-11 20:10:45 +01:00
committed by Anthony LC
parent 57c5c394f5
commit 39c4af0a7c

View File

@@ -81,10 +81,9 @@ export const BlockNoteEditor = ({ doc, provider }: BlockNoteEditorProps) => {
const { uploadFile, errorAttachment } = useUploadFile(doc.id);
const collabName =
userData?.full_name ||
userData?.email ||
(readOnly ? 'Reader' : t('Anonymous'));
const collabName = readOnly
? 'Reader'
: userData?.full_name || userData?.email || t('Anonymous');
const editor = useCreateBlockNote(
{