mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 03:56:23 +08:00
fix: react warning
This commit is contained in:
@@ -148,7 +148,6 @@ export const Header = ({ children }: PropsWithChildren<{}>) => {
|
||||
const router = useRouter();
|
||||
const currentPageMeta = pageList.find(p => p.id === router.query.pageId);
|
||||
const isTrash = !!currentPageMeta?.trash;
|
||||
console.log('isTrash', isTrash);
|
||||
return (
|
||||
<StyledHeaderContainer hasWarning={showWarning}>
|
||||
<BrowserWarning
|
||||
|
||||
@@ -52,7 +52,7 @@ export const PageHeader = () => {
|
||||
<StyledSearchArrowWrapper>
|
||||
<IconButton
|
||||
onClick={() => {
|
||||
triggerQuickSearchModal(true);
|
||||
triggerQuickSearchModal();
|
||||
}}
|
||||
>
|
||||
<MiddleIconArrowDownSmallIcon />
|
||||
|
||||
Reference in New Issue
Block a user