diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2021-05-10 15:12:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-10 15:12:49 +0000 |
commit | fa31396596915490e5447336920b3efe5d05f778 (patch) | |
tree | 6cb77791f80fc7a755e6bd95f81d76c11e21c6c0 /FrontEnd/src/app/views/settings | |
parent | 083f93b590dce0867f2c4752c2a1d9a719fca147 (diff) | |
parent | 5dcc741b5ef4391969532e1af3cc4a15bfad6000 (diff) | |
download | timeline-fa31396596915490e5447336920b3efe5d05f778.tar.gz timeline-fa31396596915490e5447336920b3efe5d05f778.tar.bz2 timeline-fa31396596915490e5447336920b3efe5d05f778.zip |
Merge pull request #516 from crupest/dependabot/npm_and_yarn/FrontEnd/prettier-2.3.0
Diffstat (limited to 'FrontEnd/src/app/views/settings')
-rw-r--r-- | FrontEnd/src/app/views/settings/ChangeAvatarDialog.tsx | 25 | ||||
-rw-r--r-- | FrontEnd/src/app/views/settings/index.tsx | 7 |
2 files changed, 16 insertions, 16 deletions
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<ChangeAvatarDialogProps> = (props) => { const [file, setFile] = React.useState<File | null>(null); const [fileUrl, setFileUrl] = React.useState<string | null>(null); const [clip, setClip] = React.useState<Clip | null>(null); - const [ - cropImgElement, - setCropImgElement, - ] = React.useState<HTMLImageElement | null>(null); + const [cropImgElement, setCropImgElement] = + React.useState<HTMLImageElement | null>(null); const [resultBlob, setResultBlob] = React.useState<Blob | null>(null); const [resultUrl, setResultUrl] = React.useState<string | null>(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); |