fixed a bug in ElementToggle and added statte for notifications and ElementList overhaul

This commit is contained in:
Clément Le Bihan
2023-04-10 23:04:44 +02:00
parent d9ede44d7d
commit 4ec8878e8a
2 changed files with 86 additions and 47 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ export const getElementToggleNode = (
) => {
return (
<Switch
onToggle={() => onToggle()}
// the callback is called by the Pressable component wrapping the entire row
isChecked={value ?? false}
defaultIsChecked={defaultValue}
disabled={disabled}