From 6138846050563e0dca95b0b6d792776925e4c35f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 20 Nov 2023 12:38:16 -0300 Subject: new forms api --- .../aml-backoffice-ui/src/handlers/InputFile.tsx | 88 +++++++++++----------- 1 file changed, 46 insertions(+), 42 deletions(-) (limited to 'packages/aml-backoffice-ui/src/handlers/InputFile.tsx') diff --git a/packages/aml-backoffice-ui/src/handlers/InputFile.tsx b/packages/aml-backoffice-ui/src/handlers/InputFile.tsx index 0d89a98a3..d9af03f86 100644 --- a/packages/aml-backoffice-ui/src/handlers/InputFile.tsx +++ b/packages/aml-backoffice-ui/src/handlers/InputFile.tsx @@ -42,40 +42,42 @@ export function InputFile( clip-rule="evenodd" /> -
- - {/*

or drag and drop

*/} -
+ {!state.disabled && +
+ + {/*

or drag and drop

*/} +
+ } ) : ( @@ -85,14 +87,16 @@ export function InputFile( class=" h-24 w-full object-cover relative" /> -
{ - onChange(undefined!); - }} - > - Clear -
+ {!state.disabled && +
{ + onChange(undefined!); + }} + > + Clear +
+ } )} {help &&

{help}

} -- cgit v1.2.3