Skip to content

Commit

Permalink
fix: Remove see published when new story map
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Dec 2, 2024
1 parent eec3669 commit cda1847
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/storyMap/components/StoryMapForm/TopBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,19 @@ const ActionsMenu = () => {
{t('storyMap.form_preview_button')}
</MenuItem>
<Divider />
<MenuItem
dense
component={Link}
href={generateStoryMapUrl(storyMap)}
target="_blank"
>
{t('storyMap.form_view_published_button')}
</MenuItem>
<Divider />
{storyMap && (
<>
<MenuItem
dense
component={Link}
href={generateStoryMapUrl(storyMap)}
target="_blank"
>
{t('storyMap.form_view_published_button')}
</MenuItem>
<Divider />
</>
)}
{storyMap && (
<MenuItem dense onClick={() => setOpenShareDialog(true)}>
{t('storyMap.form_share_button')}
Expand Down

0 comments on commit cda1847

Please sign in to comment.