diff --git a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorOverlayLayout/ErrorOverlayLayout.tsx b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorOverlayLayout/ErrorOverlayLayout.tsx index 73a3614f410daa..f3496964fba1ba 100644 --- a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorOverlayLayout/ErrorOverlayLayout.tsx +++ b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorOverlayLayout/ErrorOverlayLayout.tsx @@ -29,8 +29,6 @@ type ErrorOverlayLayoutProps = { debugInfo?: DebugInfo isBuildError?: boolean onClose?: () => void - // TODO: remove this - temporaryHeaderChildren?: React.ReactNode versionInfo?: VersionInfo // TODO: better handle receiving readyErrors?: ReadyRuntimeError[] @@ -47,7 +45,6 @@ export function ErrorOverlayLayout({ debugInfo, isBuildError, onClose, - temporaryHeaderChildren, versionInfo, readyErrors, activeIdx, @@ -90,7 +87,6 @@ export function ErrorOverlayLayout({ > {errorMessage}

- {temporaryHeaderChildren} {children} diff --git a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/Errors.tsx b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/Errors.tsx index e20e64a2353e88..ae4d56ad3141ba 100644 --- a/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/Errors.tsx +++ b/packages/next/src/client/components/react-dev-overlay/_experimental/internal/container/Errors.tsx @@ -263,50 +263,46 @@ export function Errors({ readyErrors={readyErrors} activeIdx={activeIdx} setActiveIndex={setActiveIndex} - temporaryHeaderChildren={ + > + {notes ? ( <> - {notes ? ( - <> -

- {notes} -

- - ) : null} - {hydrationWarning ? ( - - ) : null} - - {hydrationWarning && - (activeError.componentStackFrames?.length || - !!errorDetails.reactOutputComponentDiff) ? ( - - ) : null} - {isServerError ? ( -
- - This error happened while generating the page. Any console logs - will be displayed in the terminal window. - -
- ) : undefined} +

+ {notes} +

- } - > + ) : null} + {hydrationWarning ? ( + + ) : null} + + {hydrationWarning && + (activeError.componentStackFrames?.length || + !!errorDetails.reactOutputComponentDiff) ? ( + + ) : null} + {isServerError ? ( +
+ + This error happened while generating the page. Any console logs will + be displayed in the terminal window. + +
+ ) : undefined} )