`useDoumentMembers` => `useDocumentMembers`
This commit is contained in:
YangFong 2024-03-06 14:41:44 +08:00
parent ffff1b10c2
commit 2595cd1822
2 changed files with 3 additions and 3 deletions

View File

@ -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<IProps> = ({ wikiId, documentId, di
<div style={{ padding: '24px 0' }}>
<Members
id={documentId}
hook={useDoumentMembers}
hook={useDocumentMembers}
descriptions={[
'权限继承:默认继承知识库成员权限',
'超级管理员:组织超级管理员、知识库超级管理员和文档创建者',

View File

@ -89,7 +89,7 @@ export const getDocumentMembers = (
* @param documentId
* @returns
*/
export const useDoumentMembers = (documentId, options?: UseQueryOptions<Array<{ user: IUser; auth: IAuthority }>>) => {
export const useDocumentMembers = (documentId, options?: UseQueryOptions<Array<{ user: IUser; auth: IAuthority }>>) => {
const [pageSize] = useState(12);
const [page, setPage] = useState(1);
const { data, error, isLoading, refetch } = useQuery(