diff options
author | Sebastian <sebasjm@gmail.com> | 2022-06-06 00:10:38 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-06-06 00:10:38 -0300 |
commit | aa55cecb449cb40341cef0fdf4824cc6a666b8dd (patch) | |
tree | bb41d1094cc6a93976742bbdd5ecc15f2f93fea8 /packages/anastasis-webui/src/components/fields/FileInput.tsx | |
parent | fb6aff76d2152d95caa2ba6cb0d91cb01e0687fe (diff) | |
download | wallet-core-aa55cecb449cb40341cef0fdf4824cc6a666b8dd.tar.xz |
prettier
Diffstat (limited to 'packages/anastasis-webui/src/components/fields/FileInput.tsx')
-rw-r--r-- | packages/anastasis-webui/src/components/fields/FileInput.tsx | 12 |
1 files changed, 7 insertions, 5 deletions
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 { <div class="icon is-small "> <i class="mdi mdi-folder" /> </div> - <span> - {props.label} - </span> + <span>{props.label}</span> </a> {props.tooltip && ( <span class="icon has-tooltip-right" data-tooltip={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, + }); }); }} /> |