From 73f3151bc3bae84a9b57deb09bae86abe3aa7ae7 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Fri, 3 Jan 2025 14:58:43 +0530 Subject: [PATCH] [PE-97] chore: re-order pages options (#6303) * chore: re-order pages dropdown options * chore: re-order pages dropdown options --- .../pages/editor/header/options-dropdown.tsx | 4 ++-- web/core/components/pages/list/block-item-action.tsx | 12 +++--------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/web/core/components/pages/editor/header/options-dropdown.tsx b/web/core/components/pages/editor/header/options-dropdown.tsx index 32359cb3b4f..b3430ff9a73 100644 --- a/web/core/components/pages/editor/header/options-dropdown.tsx +++ b/web/core/components/pages/editor/header/options-dropdown.tsx @@ -102,14 +102,14 @@ export const PageOptionsDropdown: React.FC = observer((props) => { extraOptions={EXTRA_MENU_OPTIONS} optionsOrder={[ "full-screen", - "copy-markdown", "copy-link", + "make-a-copy", "toggle-lock", "toggle-access", - "make-a-copy", "archive-restore", "delete", "version-history", + "copy-markdown", "export", ]} page={page} diff --git a/web/core/components/pages/list/block-item-action.tsx b/web/core/components/pages/list/block-item-action.tsx index 15f4154b2c8..191a22ab3b3 100644 --- a/web/core/components/pages/list/block-item-action.tsx +++ b/web/core/components/pages/list/block-item-action.tsx @@ -29,13 +29,7 @@ export const BlockItemAction: FC = observer((props) => { page, }); // derived values - const { - access, - created_at, - is_favorite, - owned_by, - canCurrentUserFavoritePage, - } = page; + const { access, created_at, is_favorite, owned_by, canCurrentUserFavoritePage } = page; const ownerDetails = owned_by ? getUserDetails(owned_by) : undefined; return ( @@ -76,11 +70,11 @@ export const BlockItemAction: FC = observer((props) => { {/* quick actions dropdown */}