aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/toolbar/toolbar.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): replace Toolbar with Navbar componentArmand Philippot2023-11-111-86/+0
| | | | | | | | * remove SearchModal and SettingsModal components * add a generic NavbarItem component (instead of the previous toolbar items to avoid unreadable styles...) * move FlippingLabel component logic into NavbarItem since it is only used here
* feat(hooks): add useBoolean and useToggle hooksArmand Philippot2023-11-111-25/+28
|
* refactor(hooks,provider): move reduce motion setterArmand Philippot2023-11-111-14/+11
| | | | | | | | | | 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,providers): rewrite useAckee hook and AckeeProviderArmand Philippot2023-11-111-3/+1
|
* refactor(components): extract MainNav component from toolbarArmand Philippot2023-11-111-7/+21
|
* refactor(components): rewrite form componentsArmand Philippot2023-10-241-1/+0
|
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-14/+11
| | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-2/+2
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* fix(settings): close tooltip when modal is closingArmand Philippot2022-06-081-10/+11
| | | | | The event was not captured so the tooltip remained open when the settings was closed. It prevented to click on the toolbar buttons.
* chore: replace Checkbox component with a BooleanField componentArmand Philippot2022-05-311-3/+3
| | | | | Checkbox and radio buttons are working the same way so I decided to group them in a same component.
* chore: close search form when launching searchArmand Philippot2022-05-241-0/+2
|
* chore: handle settings changeArmand Philippot2022-05-181-14/+23
|
* chore: close toolbar modals on click/focus outsideArmand Philippot2022-05-181-2/+16
|
* chore: add Search pageArmand Philippot2022-05-151-3/+4
|
* refactor: support React 18Armand Philippot2022-04-161-2/+2
| | | | | | | | I replaced the deprecated VFC type with FC type and made all children explicits. Formatjs is still not compatible with React 18 so I need to skip type checking when comitting. There are some type errors because of IntlProvider in Storybook stories.
* chore: add a Toolbar componentArmand Philippot2022-04-141-0/+51