aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/forms/ackee-toggle/ackee-toggle.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): extract SettingsForm component form SettingsModalArmand Philippot2023-11-111-99/+0
| | | | | | We could use an array of items and map over it instead of repeating the Switch component for each settings but with translations, it becomes quickly unreadable. So I prefer to keep separate components.
* feat(hooks): add useBoolean and useToggle hooksArmand Philippot2023-11-111-10/+7
|
* refactor(hooks,providers): rewrite useAckee hook and AckeeProviderArmand Philippot2023-11-111-46/+8
|
* refactor(hooks): rewrite useLocalStorage hookArmand Philippot2023-11-111-2/+6
| | | | | | | * return a tuple instead of an object * add a validator function as parameter (if the stored value is manually changed, it is not safe to cast its type) * add tests
* refactor(components): rewrite List componentArmand Philippot2023-11-111-30/+27
| | | | | | | | | * change `items` prop to children * replace `kind` prop with `isHierarchical`, `isOrdered` & `isInline` props * add `hideMarker` prop * add `spacing` prop to control item spacing * move lists styles to Sass placeholders to avoid repeats because of headless WordPress
* refactor(components): rewrite form componentsArmand Philippot2023-10-241-0/+139