Skip to content

Commit

Permalink
[PE-97] chore: re-order pages options (#6303)
Browse files Browse the repository at this point in the history
* chore: re-order pages dropdown options

* chore: re-order pages dropdown options
  • Loading branch information
aaryan610 authored and sangeethailango committed Jan 3, 2025
1 parent 225d131 commit 73f3151
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions web/core/components/pages/editor/header/options-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
12 changes: 3 additions & 9 deletions web/core/components/pages/list/block-item-action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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",
]}
Expand Down

0 comments on commit 73f3151

Please sign in to comment.