Skip to content

Commit 62bb621

Browse files
committed
fixup! ✨(frontend) add comments feature
1 parent 72c6d79 commit 62bb621

File tree

1 file changed

+1
-2
lines changed
  • src/frontend/apps/impress/src/features/docs/doc-editor/components/comments

1 file changed

+1
-2
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/comments/useComments.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { useEffect, useMemo } from 'react';
2-
import type { Awareness } from 'y-protocols/awareness';
32

43
import { User } from '@/features/auth';
54
import { Doc, useProviderStore } from '@/features/docs/doc-management';
@@ -12,7 +11,7 @@ export function useComments(doc: Doc, user: User | null | undefined) {
1211
const threadStore = useMemo(() => {
1312
return new DocsThreadStore(
1413
doc.id,
15-
(provider?.awareness ?? undefined) as Awareness | undefined,
14+
provider?.awareness ?? undefined,
1615
new DocsThreadStoreAuth(
1716
encodeURIComponent(user?.full_name || ''),
1817
doc.abilities.comment,

0 commit comments

Comments
 (0)