fix: fix type error

This commit is contained in:
fantasticit 2022-03-11 14:24:09 +08:00
parent db52047c99
commit 8f212d97de
4 changed files with 8 additions and 8 deletions

View File

@ -2,7 +2,7 @@ import React, { useMemo, useEffect } from "react";
import cls from "classnames";
import { useEditor, EditorContent } from "@tiptap/react";
import { Layout, Nav, BackTop, Toast } from "@douyinfe/semi-ui";
import { IUser, IAuthority } from "@think/domains";
import { ILoginUser, IAuthority } from "@think/domains";
import { useToggle } from "hooks/useToggle";
import {
DEFAULT_EXTENSION,
@ -21,7 +21,7 @@ import styles from "./index.module.scss";
const { Header, Content } = Layout;
interface IProps {
user: IUser;
user: ILoginUser;
documentId: string;
authority: IAuthority;
className: string;

View File

@ -1,7 +1,7 @@
import React, { useMemo, useEffect } from "react";
import { useEditor, EditorContent } from "@tiptap/react";
import { Layout } from "@douyinfe/semi-ui";
import { IUser } from "@think/domains";
import { ILoginUser } from "@think/domains";
import { useToggle } from "hooks/useToggle";
import {
DEFAULT_EXTENSION,
@ -18,7 +18,7 @@ import styles from "./index.module.scss";
const { Content } = Layout;
interface IProps {
user: IUser;
user: ILoginUser;
documentId: string;
}

View File

@ -16,7 +16,7 @@ import {
BackTop,
} from "@douyinfe/semi-ui";
import { IconChevronLeft, IconArticle } from "@douyinfe/semi-icons";
import { IUser, ITemplate } from "@think/domains";
import { ILoginUser, ITemplate } from "@think/domains";
import { Theme } from "components/theme";
import {
DEFAULT_EXTENSION,
@ -36,7 +36,7 @@ import styles from "./index.module.scss";
const { Text } = Typography;
interface IProps {
user: IUser;
user: ILoginUser;
data: ITemplate;
loading: boolean;
error: Error | null;

View File

@ -4,7 +4,7 @@ import { IconEdit, IconDelete } from "@douyinfe/semi-icons";
import { useWikiUsers } from "data/wiki";
import { DataRender } from "components/data-render";
import { LocaleTime } from "components/locale-time";
import { renderWikiUserRole } from "@think/domains";
import { getWikiUserRoleText } from "@think/domains";
import { useToggle } from "hooks/useToggle";
import { Placeholder } from "./placeholder";
import { AddUser } from "./add";
@ -63,7 +63,7 @@ export const Users: React.FC<IProps> = ({ wikiId }) => {
dataIndex="userRole"
key="userRole"
align="center"
render={renderWikiUserRole}
render={getWikiUserRoleText}
/>
<Column
title="加入时间"