diff --git a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/dev-tools-indicator/dev-tools-indicator.tsx b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/dev-tools-indicator/dev-tools-indicator.tsx index b540df853c5d2..e22a1f08dd3c4 100644 --- a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/dev-tools-indicator/dev-tools-indicator.tsx +++ b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/dev-tools-indicator/dev-tools-indicator.tsx @@ -115,6 +115,9 @@ const DevToolsPopover = ({ }, []) const togglePopover = () => setIsPopoverOpen((prev) => !prev) + const openIssues = () => { + issueCount > 0 && setIsErrorOverlayOpen(true) + } return ( { - issueCount > 0 && setIsErrorOverlayOpen(true) + onClickLogo={() => { + openIssues() togglePopover() }} + openIssues={openIssues} isDevBuilding={useIsDevBuilding()} isDevRendering={useIsDevRendering()} aria-haspopup="true" diff --git a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/dev-tools-indicator/internal/next-logo.tsx b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/dev-tools-indicator/internal/next-logo.tsx index 5d88477afa635..6da8a492cf2be 100644 --- a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/dev-tools-indicator/internal/next-logo.tsx +++ b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/errors/dev-tools-indicator/internal/next-logo.tsx @@ -3,7 +3,8 @@ import { noop as css } from '../../../../../../internal/helpers/noop-template' interface Props extends React.ComponentProps<'button'> { issueCount: number - onClick: () => void + onClickLogo: () => void + openIssues: () => void isDevBuilding: boolean isDevRendering: boolean } @@ -12,7 +13,8 @@ const SIZE = 36 export const NextLogo = ({ issueCount, - onClick, + onClickLogo, + openIssues, isDevBuilding, isDevRendering, ...props @@ -220,12 +222,16 @@ export const NextLogo = ({ >
{/* Children */} - {hasError && (
-