From 2595cd1822be38302fd7274d222618ca50734dc9 Mon Sep 17 00:00:00 2001 From: YangFong Date: Wed, 6 Mar 2024 14:41:44 +0800 Subject: [PATCH] fix typo `useDoumentMembers` => `useDocumentMembers` --- .../client/src/components/document/collaboration/index.tsx | 4 ++-- packages/client/src/data/document.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/client/src/components/document/collaboration/index.tsx b/packages/client/src/components/document/collaboration/index.tsx index cce3fb0..92e9ad0 100644 --- a/packages/client/src/components/document/collaboration/index.tsx +++ b/packages/client/src/components/document/collaboration/index.tsx @@ -4,7 +4,7 @@ import { IconUserAdd } from '@douyinfe/semi-icons'; import { Avatar, AvatarGroup, Button, Dropdown, Modal, Popover, Toast, Tooltip, Typography } from '@douyinfe/semi-ui'; import { Members } from 'components/members'; -import { useDoumentMembers } from 'data/document'; +import { useDocumentMembers } from 'data/document'; import { useUser } from 'data/user'; import { event, JOIN_USER } from 'event'; import { IsOnMobile } from 'hooks/use-on-mobile'; @@ -41,7 +41,7 @@ export const DocumentCollaboration: React.FC = ({ wikiId, documentId, di
>) => { +export const useDocumentMembers = (documentId, options?: UseQueryOptions>) => { const [pageSize] = useState(12); const [page, setPage] = useState(1); const { data, error, isLoading, refetch } = useQuery(