From 65694d26aa4c3cc3e685db0e5beaf6567f5acb21 Mon Sep 17 00:00:00 2001
From: CaIon <1808837298@qq.com>
Date: Tue, 21 Nov 2023 16:49:11 +0800
Subject: [PATCH] rollback EditUser.js
---
web/src/pages/User/EditUser.js | 227 +++++++++++++++------------------
1 file changed, 104 insertions(+), 123 deletions(-)
diff --git a/web/src/pages/User/EditUser.js b/web/src/pages/User/EditUser.js
index 6ff88fcc3..d99d83bc0 100644
--- a/web/src/pages/User/EditUser.js
+++ b/web/src/pages/User/EditUser.js
@@ -1,12 +1,10 @@
import React, { useEffect, useState } from 'react';
import { Button, Form, Header, Segment } from 'semantic-ui-react';
import { useParams, useNavigate } from 'react-router-dom';
-import {API, isMobile, showError, showSuccess} from '../../helpers';
+import { API, showError, showSuccess } from '../../helpers';
import { renderQuota, renderQuotaWithPrompt } from '../../helpers/render';
-import Title from "@douyinfe/semi-ui/lib/es/typography/title";
-import {SideSheet, Space} from "@douyinfe/semi-ui";
-const EditUser = (props) => {
+const EditUser = () => {
const params = useParams();
const userId = params.id;
const [loading, setLoading] = useState(true);
@@ -22,7 +20,7 @@ const EditUser = (props) => {
});
const [groupOptions, setGroupOptions] = useState([]);
const { username, display_name, password, github_id, wechat_id, email, quota, group } =
- inputs;
+ inputs;
const handleInputChange = (e, { name, value }) => {
setInputs((inputs) => ({ ...inputs, [name]: value }));
};
@@ -85,124 +83,107 @@ const EditUser = (props) => {
};
return (
- <>
- 更新用户信息}
- headerStyle={{borderBottom: '1px solid var(--semi-color-border)'}}
- bodyStyle={{borderBottom: '1px solid var(--semi-color-border)'}}
- visible={props.visiable}
- footer={
-
-
-
-
-
-
- }
- closeIcon={null}
- onCancel={() => handleCancel()}
- width={isMobile() ? '100%' : 600}
- >
-
-
-
-
-
-
-
-
-
- {
- userId && <>
-
-
-
-
-
-
- >
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- >
+ <>
+
+
+
+
+
+
+
+
+
+
+
+ {
+ userId && <>
+
+
+
+
+
+
+ >
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
);
};