{
zIndex: 1,
}}
onClick={() => setOpen(open => !open)}
- ref={ref}
>
diff --git a/packages/component/src/components/page-list/operation-menu-items/export.tsx b/packages/component/src/components/page-list/operation-menu-items/export.tsx
index 4546ed926a..8452a6c671 100644
--- a/packages/component/src/components/page-list/operation-menu-items/export.tsx
+++ b/packages/component/src/components/page-list/operation-menu-items/export.tsx
@@ -10,7 +10,7 @@ import {
} from '@blocksuite/icons';
import { MenuIcon, MenuItem, MenuSub } from '@toeverything/components/menu';
import { useSetAtom } from 'jotai';
-import { useCallback, useRef } from 'react';
+import { useCallback } from 'react';
import { getContentParser } from './get-content-parser';
import { transitionStyle } from './index.css';
@@ -248,42 +248,36 @@ export const ExportToMarkdownMenuItem = ({
// fixme: refactor this file, export function may should be passed by 'props', this file is just a ui component
export const Export = () => {
- const ref = useRef(null);
const t = useAFFiNEI18N();
return (
-
-
-
-
-
-
- >
- }
- triggerOptions={{
- className: transitionStyle,
- preFix: (
-
-
-
- ),
- ['data-testid' as string]: 'export-menu',
- }}
- portalOptions={{
- container: ref.current,
- }}
- >
- {t.Export()}
-
-
+
+
+
+
+
+ >
+ }
+ triggerOptions={{
+ className: transitionStyle,
+ preFix: (
+
+
+
+ ),
+ ['data-testid' as string]: 'export-menu',
+ }}
+ >
+ {t.Export()}
+
);
};
diff --git a/packages/component/src/components/page-list/view/collection-list.tsx b/packages/component/src/components/page-list/view/collection-list.tsx
index a280125299..8750aac39b 100644
--- a/packages/component/src/components/page-list/view/collection-list.tsx
+++ b/packages/component/src/components/page-list/view/collection-list.tsx
@@ -9,7 +9,7 @@ import { Menu, MenuIcon, MenuItem } from '@toeverything/components/menu';
import { Tooltip } from '@toeverything/components/tooltip';
import clsx from 'clsx';
import type { MouseEvent } from 'react';
-import { useCallback, useRef, useState } from 'react';
+import { useCallback, useState } from 'react';
import { CreateFilterMenu } from '../filter/vars';
import type { useCollectionManager } from '../use-collection-manager';
@@ -110,7 +110,6 @@ export const CollectionList = ({
getPageInfo: GetPageInfoById;
propertiesMeta: PropertiesMeta;
}) => {
- const ref = useRef(null);
const t = useAFFiNEI18N();
const [collection, setCollection] = useState();
const onChange = useCallback(
@@ -140,12 +139,9 @@ export const CollectionList = ({
[closeUpdateCollectionModal, setting]
);
return (
-
+
{setting.savedCollections.length > 0 && (