mirror of https://github.com/fantasticit/think.git
fix: fix type error
This commit is contained in:
parent
db52047c99
commit
8f212d97de
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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="加入时间"
|
||||
|
|
Loading…
Reference in New Issue