chore: delete the shortcut tips for quick search
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
|||||||
StyledListItem,
|
StyledListItem,
|
||||||
// StyledListItemForWorkspace,
|
// StyledListItemForWorkspace,
|
||||||
StyledNewPageButton,
|
StyledNewPageButton,
|
||||||
StyledQuickSearch,
|
|
||||||
StyledSliderBar,
|
StyledSliderBar,
|
||||||
StyledSliderBarWrapper,
|
StyledSliderBarWrapper,
|
||||||
StyledSubListItem,
|
StyledSubListItem,
|
||||||
@@ -117,7 +116,7 @@ export const WorkSpaceSliderBar = () => {
|
|||||||
{/* <StyledListItemForWorkspace>
|
{/* <StyledListItemForWorkspace>
|
||||||
<WorkspaceSelector />
|
<WorkspaceSelector />
|
||||||
</StyledListItemForWorkspace> */}
|
</StyledListItemForWorkspace> */}
|
||||||
<StyledQuickSearch
|
<StyledListItem
|
||||||
data-testid="sliderBar-quickSearchButton"
|
data-testid="sliderBar-quickSearchButton"
|
||||||
style={{ cursor: 'pointer' }}
|
style={{ cursor: 'pointer' }}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -126,8 +125,7 @@ export const WorkSpaceSliderBar = () => {
|
|||||||
>
|
>
|
||||||
<SearchIcon />
|
<SearchIcon />
|
||||||
Quick search
|
Quick search
|
||||||
<span>{isMac() ? '⌘ + K' : 'Ctrl + K'}</span>
|
</StyledListItem>
|
||||||
</StyledQuickSearch>
|
|
||||||
<Link href={{ pathname: paths.all }}>
|
<Link href={{ pathname: paths.all }}>
|
||||||
<StyledListItem active={router.asPath === paths.all}>
|
<StyledListItem active={router.asPath === paths.all}>
|
||||||
<AllPagesIcon /> <span>All pages</span>
|
<AllPagesIcon /> <span>All pages</span>
|
||||||
|
|||||||
@@ -142,34 +142,3 @@ export const StyledSubListItem = styled.button<{
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
export const StyledQuickSearch = styled.div(({ theme }) => {
|
|
||||||
return {
|
|
||||||
width: '296px',
|
|
||||||
height: '32px',
|
|
||||||
marginTop: '12px',
|
|
||||||
fontSize: theme.font.sm,
|
|
||||||
backgroundColor: theme.colors.hoverBackground,
|
|
||||||
color: theme.colors.popoverColor,
|
|
||||||
paddingLeft: '12px',
|
|
||||||
borderRadius: '5px',
|
|
||||||
...displayFlex('flex-start', 'center'),
|
|
||||||
'>svg': {
|
|
||||||
fontSize: '20px',
|
|
||||||
marginRight: '12px',
|
|
||||||
},
|
|
||||||
'>span': {
|
|
||||||
fontSize: theme.font.xs,
|
|
||||||
margin: 'auto',
|
|
||||||
marginRight: '12px',
|
|
||||||
color: theme.colors.hoverBackground,
|
|
||||||
transition: 'all .15s',
|
|
||||||
},
|
|
||||||
':hover': {
|
|
||||||
color: theme.colors.popoverColor,
|
|
||||||
'>span': {
|
|
||||||
color: theme.colors.popoverColor,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user