2495 fix cmdk removal and added toggle functionality (#2528)
* 2495-fix(front): cmdk removed; custom styles added * 2495-fix(front): search issue fixed * 2495-feat(front): Menu toggle funct added * 2495-fix(front): onclick handler added * 2495-fix(front): Focus with ArrowKeys added; cmdk removed * Remove cmdk * Introduce Selectable list * Improve api * Improve api * Complete refactoring * Fix ui regressions --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -19,7 +19,7 @@ import NavTitle from '@/ui/navigation/navbar/components/NavTitle';
|
||||
|
||||
export const AppNavbar = () => {
|
||||
const currentPath = useLocation().pathname;
|
||||
const { openCommandMenu } = useCommandMenu();
|
||||
const { toggleCommandMenu } = useCommandMenu();
|
||||
|
||||
const isInSubMenu = useIsSubMenuNavbarDisplayed();
|
||||
const { currentUserDueTaskCount } = useCurrentUserTaskCount();
|
||||
@ -32,7 +32,7 @@ export const AppNavbar = () => {
|
||||
label="Search"
|
||||
Icon={IconSearch}
|
||||
onClick={() => {
|
||||
openCommandMenu();
|
||||
toggleCommandMenu();
|
||||
}}
|
||||
keyboard={['⌘', 'K']}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user