Merge pull request #711 from toeverything/chore/remove-searchArrowButton
chore: remove searchArrowButton
This commit is contained in:
@@ -1,14 +1,8 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import {
|
import { StyledSwitchWrapper, StyledTitle, StyledTitleWrapper } from './styles';
|
||||||
StyledSearchArrowWrapper,
|
|
||||||
StyledSwitchWrapper,
|
|
||||||
StyledTitle,
|
|
||||||
StyledTitleWrapper,
|
|
||||||
} from './styles';
|
|
||||||
import { Content } from '@/ui/layout';
|
import { Content } from '@/ui/layout';
|
||||||
import { useAppState } from '@/providers/app-state-provider/context';
|
import { useAppState } from '@/providers/app-state-provider/context';
|
||||||
import EditorModeSwitch from '@/components/editor-mode-switch';
|
import EditorModeSwitch from '@/components/editor-mode-switch';
|
||||||
import QuickSearchButton from './QuickSearchButton';
|
|
||||||
import Header from './Header';
|
import Header from './Header';
|
||||||
import usePropsUpdated from '@/hooks/use-props-updated';
|
import usePropsUpdated from '@/hooks/use-props-updated';
|
||||||
import useCurrentPageMeta from '@/hooks/use-current-page-meta';
|
import useCurrentPageMeta from '@/hooks/use-current-page-meta';
|
||||||
@@ -64,9 +58,9 @@ export const EditorHeader = () => {
|
|||||||
/>
|
/>
|
||||||
</StyledSwitchWrapper>
|
</StyledSwitchWrapper>
|
||||||
<Content ellipsis={true}>{title}</Content>
|
<Content ellipsis={true}>{title}</Content>
|
||||||
<StyledSearchArrowWrapper>
|
{/* <StyledSearchArrowWrapper>
|
||||||
<QuickSearchButton />
|
<QuickSearchButton />
|
||||||
</StyledSearchArrowWrapper>
|
</StyledSearchArrowWrapper> */}
|
||||||
</StyledTitleWrapper>
|
</StyledTitleWrapper>
|
||||||
</StyledTitle>
|
</StyledTitle>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export const QuickSearchButton = ({
|
|||||||
const { triggerQuickSearchModal } = useModal();
|
const { triggerQuickSearchModal } = useModal();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
return (
|
return (
|
||||||
<Tooltip content={t('Switch to')} placement="bottom">
|
<Tooltip content={t('Jump to')} placement="bottom">
|
||||||
<IconButton
|
<IconButton
|
||||||
data-testid="header-quickSearchButton"
|
data-testid="header-quickSearchButton"
|
||||||
{...props}
|
{...props}
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export const Results = (props: {
|
|||||||
</StyledNotFound>
|
</StyledNotFound>
|
||||||
)
|
)
|
||||||
) : (
|
) : (
|
||||||
<Command.Group heading={t('Switch to')}>
|
<Command.Group heading={t('Jump to')}>
|
||||||
{List.map(link => {
|
{List.map(link => {
|
||||||
return (
|
return (
|
||||||
<Command.Item
|
<Command.Item
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"Add to favourites": "Add to favourites",
|
"Add to favourites": "Add to favourites",
|
||||||
"Paper": "Paper",
|
"Paper": "Paper",
|
||||||
"Edgeless": "Edgeless",
|
"Edgeless": "Edgeless",
|
||||||
"Switch to": "Switch to",
|
"Jump to": "Jump to",
|
||||||
"Convert to ": "Convert to ",
|
"Convert to ": "Convert to ",
|
||||||
"Page": "Page",
|
"Page": "Page",
|
||||||
"Export": "Export",
|
"Export": "Export",
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export async function clickPageMoreActions(page: Page) {
|
|||||||
.getByTestId('editor-header-items')
|
.getByTestId('editor-header-items')
|
||||||
.getByRole('button')
|
.getByRole('button')
|
||||||
//FIXME: temporary change due to cloud sync icon being hidden
|
//FIXME: temporary change due to cloud sync icon being hidden
|
||||||
.nth(1)
|
.nth(0)
|
||||||
.click()
|
.click()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ test.describe('Open quick search', () => {
|
|||||||
await expect(quickSearch).toBeVisible();
|
await expect(quickSearch).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Click arrowDown icon after title', async ({ page }) => {
|
test.skip('Click arrowDown icon after title', async ({ page }) => {
|
||||||
await newPage(page);
|
await newPage(page);
|
||||||
const quickSearchButton = page.locator(
|
const quickSearchButton = page.locator(
|
||||||
'[data-testid=header-quickSearchButton]'
|
'[data-testid=header-quickSearchButton]'
|
||||||
|
|||||||
Reference in New Issue
Block a user