Skip to content

Commit

Permalink
fix: Add menu items directly
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Dec 2, 2024
1 parent bca089a commit 5129dd4
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/storyMap/components/StoryMapForm/TopBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,16 @@ const ActionsMenu = () => {
</MenuItem>
<Divider />
{storyMap && (
<>
<MenuItem
dense
component={Link}
href={generateStoryMapUrl(storyMap)}
target="_blank"
>
{t('storyMap.form_view_published_button')}
</MenuItem>
<Divider />
</>
<MenuItem
dense
component={Link}
href={generateStoryMapUrl(storyMap)}
target="_blank"
>
{t('storyMap.form_view_published_button')}
</MenuItem>
)}
{storyMap && <Divider />}
{storyMap && (
<MenuItem dense onClick={() => setOpenShareDialog(true)}>
{t('storyMap.form_share_button')}
Expand Down

0 comments on commit 5129dd4

Please sign in to comment.