aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/forms/prism-theme-toggle/prism-theme-toggle.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): extract SettingsForm component form SettingsModalArmand Philippot2023-11-111-75/+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.
* refactor(providers,hooks): rewrite PrismThemeProvider & usePrismThemeArmand Philippot2023-11-111-22/+5
| | | | | | * reuse Theme provider logic * move DOM mutation from provider to hook * add a script to init theme before page load
* feat(components): replace icons with a generic Icon componentArmand Philippot2023-10-241-8/+15
| | | | | Sizes are also predefined and can be set using the `size` prop, so the consumers should no longer adjust the size in CSS.
* refactor(components): rewrite form componentsArmand Philippot2023-10-241-0/+85