[PE-97] chore: re-order pages options (#6303)

* chore: re-order pages dropdown options

* chore: re-order pages dropdown options
This commit is contained in:
Aaryan Khandelwal 2025-01-03 14:58:43 +05:30 committed by GitHub
parent 3fd2550d69
commit be9dbc1b18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 11 deletions

View file

@ -102,14 +102,14 @@ export const PageOptionsDropdown: React.FC<Props> = 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}

View file

@ -29,13 +29,7 @@ export const BlockItemAction: FC<Props> = 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<Props> = observer((props) => {
{/* quick actions dropdown */}
<PageActions
optionsOrder={[
"toggle-lock",
"toggle-access",
"open-in-new-tab",
"copy-link",
"make-a-copy",
"toggle-lock",
"toggle-access",
"archive-restore",
"delete",
]}