From 2d9ef25d6171890496b1c9dd48a91b11c40eca7c Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Mon, 6 Dec 2021 20:46:35 +0800
Subject: ...

---
 FrontEnd/src/views/admin/UserAdmin.tsx | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

(limited to 'FrontEnd/src/views/admin/UserAdmin.tsx')

diff --git a/FrontEnd/src/views/admin/UserAdmin.tsx b/FrontEnd/src/views/admin/UserAdmin.tsx
index 68d65409..6c411be8 100644
--- a/FrontEnd/src/views/admin/UserAdmin.tsx
+++ b/FrontEnd/src/views/admin/UserAdmin.tsx
@@ -1,13 +1,12 @@
 import React, { useState, useEffect } from "react";
+import { Trans, useTranslation } from "react-i18next";
 import classnames from "classnames";
 
+import { getHttpUserClient, HttpUser, kUserPermissionList } from "@/http/user";
+
 import OperationDialog, {
   OperationDialogBoolInput,
 } from "../common/dailog/OperationDialog";
-
-import { AuthUser } from "@/services/user";
-import { getHttpUserClient, HttpUser, kUserPermissionList } from "@/http/user";
-import { Trans, useTranslation } from "react-i18next";
 import Button from "../common/button/Button";
 import Spinner from "../common/Spinner";
 import FlatButton from "../common/button/FlatButton";
@@ -246,11 +245,7 @@ const UserItem: React.FC<UserItemProps> = ({ user, onChange }) => {
   );
 };
 
-interface UserAdminProps {
-  user: AuthUser;
-}
-
-const UserAdmin: React.FC<UserAdminProps> = () => {
+const UserAdmin: React.FC = () => {
   const [users, setUsers] = useState<HttpUser[] | null>(null);
   const [dialog, setDialog] = useState<"create" | null>(null);
   const [usersVersion, setUsersVersion] = useState<number>(0);
-- 
cgit v1.2.3

