From aa55cecb449cb40341cef0fdf4824cc6a666b8dd Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 6 Jun 2022 00:10:38 -0300 Subject: prettier --- packages/anastasis-webui/src/components/fields/FileInput.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'packages/anastasis-webui/src/components/fields/FileInput.tsx') diff --git a/packages/anastasis-webui/src/components/fields/FileInput.tsx b/packages/anastasis-webui/src/components/fields/FileInput.tsx index adf51afb0..2fb1ed2a1 100644 --- a/packages/anastasis-webui/src/components/fields/FileInput.tsx +++ b/packages/anastasis-webui/src/components/fields/FileInput.tsx @@ -56,9 +56,7 @@ export function FileInput(props: FileInputProps): VNode {
- - {props.label} - + {props.label} {props.tooltip && ( @@ -77,7 +75,7 @@ export function FileInput(props: FileInputProps): VNode { if (!f || f.length != 1) { return props.onChange(undefined); } - console.log(f) + console.log(f); if (f[0].size > MAX_IMAGE_UPLOAD_SIZE) { setSizeError(true); return props.onChange(undefined); @@ -90,7 +88,11 @@ export function FileInput(props: FileInputProps): VNode { "", ), ); - return props.onChange({content: `data:${f[0].type};base64,${b64}`, name: f[0].name, type: f[0].type}); + return props.onChange({ + content: `data:${f[0].type};base64,${b64}`, + name: f[0].name, + type: f[0].type, + }); }); }} /> -- cgit v1.2.3