diff options
author | crupest <crupest@outlook.com> | 2021-05-10 23:10:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-05-10 23:10:09 +0800 |
commit | b4e0441dd8b0a238d970d6c9382fd84d86e6e249 (patch) | |
tree | fa8d497b0176d6c7bde35ba95feed254b780e25f /FrontEnd/src/app/views/admin | |
parent | 9a5a7ec68b81894e6731e34ada1fba2d513e7b02 (diff) | |
download | timeline-b4e0441dd8b0a238d970d6c9382fd84d86e6e249.tar.gz timeline-b4e0441dd8b0a238d970d6c9382fd84d86e6e249.tar.bz2 timeline-b4e0441dd8b0a238d970d6c9382fd84d86e6e249.zip |
chore: Migrate to prettier 2.3.0.
Diffstat (limited to 'FrontEnd/src/app/views/admin')
-rw-r--r-- | FrontEnd/src/app/views/admin/UserAdmin.tsx | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/FrontEnd/src/app/views/admin/UserAdmin.tsx b/FrontEnd/src/app/views/admin/UserAdmin.tsx index 26c40a33..558d3aee 100644 --- a/FrontEnd/src/app/views/admin/UserAdmin.tsx +++ b/FrontEnd/src/app/views/admin/UserAdmin.tsx @@ -55,25 +55,24 @@ const UsernameLabel: React.FC = (props) => { return <span style={{ color: "blue" }}>{props.children}</span>; }; -const UserDeleteDialog: React.FC< - DialogProps<{ username: string }, unknown> -> = ({ open, close, data: { username }, onSuccess }) => { - return ( - <OperationDialog - open={open} - close={close} - title="admin:user.dialog.delete.title" - themeColor="danger" - inputPrompt={() => ( - <Trans i18nKey="admin:user.dialog.delete.prompt"> - 0<UsernameLabel>{username}</UsernameLabel>2 - </Trans> - )} - onProcess={() => getHttpUserClient().delete(username)} - onSuccessAndClose={onSuccess} - /> - ); -}; +const UserDeleteDialog: React.FC<DialogProps<{ username: string }, unknown>> = + ({ open, close, data: { username }, onSuccess }) => { + return ( + <OperationDialog + open={open} + close={close} + title="admin:user.dialog.delete.title" + themeColor="danger" + inputPrompt={() => ( + <Trans i18nKey="admin:user.dialog.delete.prompt"> + 0<UsernameLabel>{username}</UsernameLabel>2 + </Trans> + )} + onProcess={() => getHttpUserClient().delete(username)} + onSuccessAndClose={onSuccess} + /> + ); + }; const UserModifyDialog: React.FC< DialogProps< |