Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
feat: Change order of actions in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuf-musleh committed Feb 11, 2024
1 parent 362aa01 commit 8c4f967
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/library-authoring/author-library/LibraryAuthoringPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,18 @@ export const BlockPreviewBase = ({
iconAs={Icon}
/>
<Dropdown.Menu align="right">
<Dropdown.Item
aria-label={intl.formatMessage(messages['library.detail.block.delete'])}
onClick={() => setShowDeleteModal(true)}
>
{intl.formatMessage(messages['library.detail.block.delete'])}
</Dropdown.Item>
<Dropdown.Item
aria-label={intl.formatMessage(messages['library.detail.block.manage_tags'])}
onClick={() => setOpenContentTagsDrawer(block.id)}
>
{intl.formatMessage(messages['library.detail.block.manage_tags'])}
</Dropdown.Item>
<Dropdown.Item
aria-label={intl.formatMessage(messages['library.detail.block.delete'])}
onClick={() => setShowDeleteModal(true)}
>
{intl.formatMessage(messages['library.detail.block.delete'])}
</Dropdown.Item>
</Dropdown.Menu>
</Dropdown>
</OverlayTrigger>
Expand Down Expand Up @@ -510,7 +510,7 @@ const ContentTagsDrawer = ({ openContentTagsDrawer, setOpenContentTagsDrawer })
// Add event listener to close drawer when close button is clicked or ESC pressed
// from within the Iframe
window.addEventListener('message', handleCloseMessage);
// Add event listern to close the drawer when ESC pressed and focus outside iframe
// Add event listener to close the drawer when ESC pressed and focus outside iframe
// If ESC is pressed while the Iframe is in focus, it will send the close message
// to the parent window and it will be handled with the above event listener
window.addEventListener('keyup', handleCloseEsc);
Expand Down

0 comments on commit 8c4f967

Please sign in to comment.