diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/components/form/InputToggle.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/src/components/form/InputToggle.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/components/form/InputToggle.tsx b/packages/merchant-backoffice-ui/src/components/form/InputToggle.tsx index f95dfcd05..8c935f33b 100644 --- a/packages/merchant-backoffice-ui/src/components/form/InputToggle.tsx +++ b/packages/merchant-backoffice-ui/src/components/form/InputToggle.tsx @@ -1,6 +1,6 @@ /* This file is part of GNU Taler - (C) 2021-2023 Taler Systems S.A. + (C) 2021-2024 Taler Systems S.A. GNU Taler is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -79,7 +79,7 @@ export function InputToggle<T>({ disabled={readonly} onChange={onCheckboxClick} /> - <div class="toggle-switch"></div> + <div class={`toggle-switch ${readonly ? "disabled" : ""}`} style={{ cursor: readonly ? "default" : undefined }}></div> </label> {help} </p> |