aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/forms/motion-toggle
Commit message (Collapse)AuthorAgeFilesLines
* refactor(hooks,provider): move reduce motion setterArmand Philippot2023-11-114-69/+9
| | | | | | | | | | Since the local storage key is not meant to change between the components, it should be set directly inside the app file. So both the local storage and the data attribute should be handle in a provider. I also added a custom document because we need a script to retrieve the stored value in local storage earlier to avoid flashing on hydration.
* refactor(hooks): rewrite useLocalStorage hookArmand Philippot2023-11-111-3/+7
| | | | | | | * 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): make form components compliant with Eslint rulesArmand Philippot2023-11-114-8/+12
|
* build: convert project to esmArmand Philippot2023-10-241-0/+1
|
* refactor(components): rewrite form componentsArmand Philippot2023-10-245-0/+153