Add cmd k to navigate pages (#254)
* Begin styled command bar * Add 2 commands and improve styling * Add storybook * Move z-index to variables and use hotkey hook
This commit is contained in:
@ -2,6 +2,7 @@ import styled from '@emotion/styled';
|
||||
import { useRecoilState } from 'recoil';
|
||||
|
||||
import { currentUserState } from '@/auth/states/currentUserState';
|
||||
import { CommandMenu } from '@/search/components/CommandMenu';
|
||||
|
||||
import { Navbar } from './navbar/Navbar';
|
||||
|
||||
@ -34,6 +35,7 @@ export function AppLayout({ children }: OwnProps) {
|
||||
<StyledLayout>
|
||||
{userIsAuthenticated ? (
|
||||
<>
|
||||
<CommandMenu />
|
||||
<Navbar />
|
||||
<MainContainer>{children}</MainContainer>
|
||||
</>
|
||||
|
||||
@ -26,6 +26,8 @@ const commonTheme = {
|
||||
borderRadius: '4px',
|
||||
|
||||
rightDrawerWidth: '300px',
|
||||
|
||||
lastLayerZIndex: 2147483647,
|
||||
};
|
||||
|
||||
const lightThemeSpecific = {
|
||||
|
||||
Reference in New Issue
Block a user