Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore: delete the shortcut tips for quick search

JimmFlyf3b4ca7a3e50
diff --git a/packages/app/src/components/workspace-slider-bar/index.tsx b/packages/app/src/components/workspace-slider-bar/index.tsx
index b40c268b90..d441f18b13 100644
--- a/packages/app/src/components/workspace-slider-bar/index.tsx
+++ b/packages/app/src/components/workspace-slider-bar/index.tsx
@@ -6,7 +6,6 @@ import {
StyledListItem,
// StyledListItemForWorkspace,
StyledNewPageButton,
- StyledQuickSearch,
StyledSliderBar,
StyledSliderBarWrapper,
StyledSubListItem,
@@ -117,7 +116,7 @@ export const WorkSpaceSliderBar = () => {
{/* <StyledListItemForWorkspace>
<WorkspaceSelector />
</StyledListItemForWorkspace> */}
- <StyledQuickSearch
+ <StyledListItem
data-testid="sliderBar-quickSearchButton"
style={{ cursor: 'pointer' }}
onClick={() => {
@@ -126,8 +125,7 @@ export const WorkSpaceSliderBar = () => {
>
<SearchIcon />
Quick search
- <span>{isMac() ? '⌘ + K' : 'Ctrl + K'}</span>
- </StyledQuickSearch>
+ </StyledListItem>
<Link href={{ pathname: paths.all }}>
<StyledListItem active={router.asPath === paths.all}>
<AllPagesIcon /> <span>All pages</span>
diff --git a/packages/app/src/components/workspace-slider-bar/style.ts b/packages/app/src/components/workspace-slider-bar/style.ts
index 63c07844bb..f29de60a1e 100644
--- a/packages/app/src/components/workspace-slider-bar/style.ts
+++ b/packages/app/src/components/workspace-slider-bar/style.ts
@@ -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,
- },
- },
- };
-});