Skip to content

Commit

Permalink
Fix bug hiding Refresh and Request Help between small and medium screens
Browse files Browse the repository at this point in the history
  • Loading branch information
sboleyn committed Nov 15, 2023
1 parent 67260a5 commit 9ad0da5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/analyses/landing/DotMenuItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export default function DotMenuItems(props) {
analysis?.resultfolderid
);
const interactiveUrls = analysis?.interactive_urls;
const { isSmUp } = useBreakpoints();
const { isMdDown } = useBreakpoints();
return [
!isSmUp && (
isMdDown && (
<MenuItem
key={buildID(baseId, ids.MENUITEM_REFRESH)}
id={buildID(baseId, ids.MENUITEM_REFRESH)}
Expand All @@ -75,7 +75,7 @@ export default function DotMenuItems(props) {
<ListItemText primary={t("refresh")} />
</MenuItem>
),
!isSmUp && allowShareWithSupport && (
isMdDown && allowShareWithSupport && (
<MenuItem
key={buildID(baseId, ids.MENUITEM_SHARE_WITH_SUPPORT)}
id={buildID(baseId, ids.MENUITEM_SHARE_WITH_SUPPORT)}
Expand Down

0 comments on commit 9ad0da5

Please sign in to comment.