aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/navbar/navbar.test.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): replace items prop in Navbar componentArmand Philippot2023-11-211-34/+13
| | | | | | | | | | | | | | * replace `items` prop with `children` prop: it is more readable this way, * handle navbar item state inside NavbarItem component: it avoid using three differents states and their methods to do exactly the same thing * remove useAutofocus hook since we can't use it anymore * add `onActivation` and `activationHandlerDelay` prop to NavbarItem component to be able to focus the search input only when the item is activated (it replicates the functioning of useAutofocus hook) * replace `ref` type in SearchForm component: it does not make sense to use an input ref for a form. Instead I use useImperativeHandle to provide different a focus method to the given ref.
* refactor(components): replace Toolbar with Navbar componentArmand Philippot2023-11-111-0/+42
* 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