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

View File

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

View File

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

View File

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