summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-11-07 19:29:47 -0300
committerSebastian <sebasjm@gmail.com>2022-11-07 19:29:47 -0300
commit43c7cff75055f72c7d59a7180ae8da2554456d8d (patch)
tree40456d9ab678e366a198fb7c491b3a2beb9f5779 /packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx
parent0249f57b461064520c1ab4bd144f127e4473b298 (diff)
downloadwallet-core-43c7cff75055f72c7d59a7180ae8da2554456d8d.tar.gz
wallet-core-43c7cff75055f72c7d59a7180ae8da2554456d8d.tar.bz2
wallet-core-43c7cff75055f72c7d59a7180ae8da2554456d8d.zip
un-uglyfy, fix: 7442
Diffstat (limited to 'packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx b/packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx
index 469047afb..35cbd7a41 100644
--- a/packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx
+++ b/packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx
@@ -90,7 +90,7 @@ interface InputLabelProps {
color: Colors;
disableAnimation: boolean;
disabled: boolean;
- error: boolean;
+ error?: string;
focused: boolean;
margin: boolean;
required: boolean;
@@ -104,8 +104,8 @@ export function InputLabel(props: Partial<InputLabelProps>): VNode {
<FormLabel
data-form-control={!!fcs}
data-size={fcs.size}
- data-shrink={props.shrink || fcs.filled || fcs.focused}
- data-disable-animation={props.disableAnimation}
+ data-shrink={props.shrink || fcs.filled || fcs.focused ? true : undefined}
+ data-disable-animation={props.disableAnimation ? true : undefined}
data-variant={fcs.variant}
class={root}
{...props}