{pagesToRender.map(page => {
@@ -260,13 +281,13 @@ export const CollectionsList = ({ workspace }: CollectionsListProps) => {
const t = useAFFiNEI18N();
if (pinedCollections.length === 0) {
return (
-
}
disabled
>
{t['Create a collection']()}
-
+
);
}
return (
diff --git a/apps/core/src/components/pure/workspace-slider-bar/collections/page.tsx b/apps/core/src/components/pure/workspace-slider-bar/collections/page.tsx
index 8d550e8cff..019b8a2153 100644
--- a/apps/core/src/components/pure/workspace-slider-bar/collections/page.tsx
+++ b/apps/core/src/components/pure/workspace-slider-bar/collections/page.tsx
@@ -1,5 +1,4 @@
-import { Menu } from '@affine/component';
-import { MenuItem } from '@affine/component/app-sidebar';
+import { MenuItem as CollectionItem } from '@affine/component/app-sidebar';
import { useAFFiNEI18N } from '@affine/i18n/hooks';
import {
DeleteIcon,
@@ -11,6 +10,13 @@ import {
} from '@blocksuite/icons';
import type { PageMeta, Workspace } from '@blocksuite/store';
import * as Collapsible from '@radix-ui/react-collapsible';
+import { IconButton } from '@toeverything/components/button';
+import {
+ Menu,
+ MenuIcon,
+ MenuItem,
+ type MenuItemProps,
+} from '@toeverything/components/menu';
import { useBlockSuitePageReferences } from '@toeverything/hooks/use-block-suite-page-references';
import { useAtomValue } from 'jotai/index';
import type { ReactElement } from 'react';
@@ -46,7 +52,7 @@ export const PageOperations = ({
icon: ReactElement;
name: string;
click: () => void;
- className?: string;
+ type?: MenuItemProps['type'];
element?: undefined;
}
| {
@@ -58,7 +64,11 @@ export const PageOperations = ({
...(inAllowList
? [
{
- icon:
,
+ icon: (
+
+
+
+ ),
name: t['Remove special filter'](),
click: () => removeFromAllowList(page.id),
},
@@ -67,7 +77,11 @@ export const PageOperations = ({
...(!inExcludeList
? [
{
- icon:
,
+ icon: (
+
+
+
+ ),
name: t['Exclude from filter'](),
click: () => addToExcludeList(page.id),
},
@@ -77,12 +91,16 @@ export const PageOperations = ({
element:
,
},
{
- icon:
,
+ icon: (
+
+
+
+ ),
name: t['Delete'](),
click: () => {
removeToTrash(page.id);
},
- className: styles.deleteFolder,
+ type: 'danger',
},
],
[
@@ -105,8 +123,8 @@ export const PageOperations = ({
+ items={
+