From 47587812b809fee2a95c76266d9d0e42fc4ac1ca Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Tue, 15 Jun 2021 14:14:28 +0800
Subject: ...

---
 .../app/views/settings/ChangeNicknameDialog.tsx    | 32 ----------------------
 1 file changed, 32 deletions(-)
 delete mode 100644 FrontEnd/src/app/views/settings/ChangeNicknameDialog.tsx

(limited to 'FrontEnd/src/app/views/settings/ChangeNicknameDialog.tsx')

diff --git a/FrontEnd/src/app/views/settings/ChangeNicknameDialog.tsx b/FrontEnd/src/app/views/settings/ChangeNicknameDialog.tsx
deleted file mode 100644
index 4b44cdd6..00000000
--- a/FrontEnd/src/app/views/settings/ChangeNicknameDialog.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import { getHttpUserClient } from "@/http/user";
-import { useUserLoggedIn } from "@/services/user";
-import React from "react";
-
-import OperationDialog from "../common/OperationDialog";
-
-export interface ChangeNicknameDialogProps {
-  open: boolean;
-  close: () => void;
-}
-
-const ChangeNicknameDialog: React.FC<ChangeNicknameDialogProps> = (props) => {
-  const user = useUserLoggedIn();
-
-  return (
-    <OperationDialog
-      open={props.open}
-      title="settings.dialogChangeNickname.title"
-      inputScheme={[
-        { type: "text", label: "settings.dialogChangeNickname.inputLabel" },
-      ]}
-      onProcess={([newNickname]) => {
-        return getHttpUserClient().patch(user.username, {
-          nickname: newNickname,
-        });
-      }}
-      close={props.close}
-    />
-  );
-};
-
-export default ChangeNicknameDialog;
-- 
cgit v1.2.3

