From 5dcc741b5ef4391969532e1af3cc4a15bfad6000 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 10 May 2021 23:10:09 +0800 Subject: chore: Migrate to prettier 2.3.0. --- .../src/app/views/settings/ChangeAvatarDialog.tsx | 25 +++++++++++----------- FrontEnd/src/app/views/settings/index.tsx | 7 +++--- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'FrontEnd/src/app/views/settings') diff --git a/FrontEnd/src/app/views/settings/ChangeAvatarDialog.tsx b/FrontEnd/src/app/views/settings/ChangeAvatarDialog.tsx index 53ffbc8d..bad21dd5 100644 --- a/FrontEnd/src/app/views/settings/ChangeAvatarDialog.tsx +++ b/FrontEnd/src/app/views/settings/ChangeAvatarDialog.tsx @@ -24,22 +24,21 @@ const ChangeAvatarDialog: React.FC = (props) => { const [file, setFile] = React.useState(null); const [fileUrl, setFileUrl] = React.useState(null); const [clip, setClip] = React.useState(null); - const [ - cropImgElement, - setCropImgElement, - ] = React.useState(null); + const [cropImgElement, setCropImgElement] = + React.useState(null); const [resultBlob, setResultBlob] = React.useState(null); const [resultUrl, setResultUrl] = React.useState(null); - const [state, setState] = React.useState< - | "select" - | "crop" - | "processcrop" - | "preview" - | "uploading" - | "success" - | "error" - >("select"); + const [state, setState] = + React.useState< + | "select" + | "crop" + | "processcrop" + | "preview" + | "uploading" + | "success" + | "error" + >("select"); const [message, setMessage] = useState< string | { type: "custom"; text: string } | null diff --git a/FrontEnd/src/app/views/settings/index.tsx b/FrontEnd/src/app/views/settings/index.tsx index 04a2777a..9f955121 100644 --- a/FrontEnd/src/app/views/settings/index.tsx +++ b/FrontEnd/src/app/views/settings/index.tsx @@ -40,9 +40,10 @@ const SettingsPage: React.FC = (_) => { const user = useUser(); const history = useHistory(); - const [dialog, setDialog] = useState< - null | "changepassword" | "changeavatar" | "changenickname" | "logout" - >(null); + const [dialog, setDialog] = + useState< + null | "changepassword" | "changeavatar" | "changenickname" | "logout" + >(null); const language = i18n.language.slice(0, 2); -- cgit v1.2.3