From b4e0441dd8b0a238d970d6c9382fd84d86e6e249 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. --- FrontEnd/src/app/views/common/ImageCropper.tsx | 5 ++--- FrontEnd/src/app/views/common/OperationDialog.tsx | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'FrontEnd/src/app/views/common') diff --git a/FrontEnd/src/app/views/common/ImageCropper.tsx b/FrontEnd/src/app/views/common/ImageCropper.tsx index 2ef5b7ed..371ab0b1 100644 --- a/FrontEnd/src/app/views/common/ImageCropper.tsx +++ b/FrontEnd/src/app/views/common/ImageCropper.tsx @@ -40,9 +40,8 @@ export interface ImageCropperProps { const ImageCropper = (props: ImageCropperProps): React.ReactElement => { const { clip, imageUrl, onChange, imageElementCallback, className } = props; - const [oldState, setOldState] = React.useState( - null - ); + const [oldState, setOldState] = + React.useState(null); const [imageInfo, setImageInfo] = React.useState(null); const normalizeClip = (c: Clip | null | undefined): NormailizedClip => { diff --git a/FrontEnd/src/app/views/common/OperationDialog.tsx b/FrontEnd/src/app/views/common/OperationDialog.tsx index c9fa709f..6a5228f9 100644 --- a/FrontEnd/src/app/views/common/OperationDialog.tsx +++ b/FrontEnd/src/app/views/common/OperationDialog.tsx @@ -186,7 +186,7 @@ const OperationDialog = < setStep({ type: "process" }); props .onProcess( - (values as unknown) as MapOperationInputInfoValueTypeList + values as unknown as MapOperationInputInfoValueTypeList ) .then( (d) => { @@ -218,7 +218,7 @@ const OperationDialog = < const { inputValidator } = props; if (inputValidator != null) { const result = inputValidator( - (values as unknown) as MapOperationInputInfoValueTypeList + values as unknown as MapOperationInputInfoValueTypeList ); setInputError(result); return isNoError(result); -- cgit v1.2.3