Unverified Commit 41564fd5 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix lint check (#62702)

x-ref:
https://github.com/vercel/next.js/actions/runs/8103553122/job/22149048179

Closes NEXT-2653
parent ce422240
...@@ -75,8 +75,6 @@ export function PseudoHtmlDiff({ ...@@ -75,8 +75,6 @@ export function PseudoHtmlDiff({
const isLastFewFrames = const isLastFewFrames =
!isHtmlTagsWarning && index >= componentList.length - 6 !isHtmlTagsWarning && index >= componentList.length - 6
const reachedMaxDisplayFrames =
nestedHtmlStack.length >= MAX_NON_COLLAPSED_FRAMES
if ( if (
nestedHtmlStack.length >= MAX_NON_COLLAPSED_FRAMES && nestedHtmlStack.length >= MAX_NON_COLLAPSED_FRAMES &&
...@@ -91,7 +89,7 @@ export function PseudoHtmlDiff({ ...@@ -91,7 +89,7 @@ export function PseudoHtmlDiff({
<span <span
{...(isHighlightedTag {...(isHighlightedTag
? { ? {
['data-nextjs-container-errors-pseudo-html--tag-error']: 'data-nextjs-container-errors-pseudo-html--tag-error':
true, true,
} }
: undefined)} : undefined)}
...@@ -137,10 +135,10 @@ export function PseudoHtmlDiff({ ...@@ -137,10 +135,10 @@ export function PseudoHtmlDiff({
const wrappedCodeLine = ( const wrappedCodeLine = (
<Fragment key={nestedHtmlStack.length}> <Fragment key={nestedHtmlStack.length}>
<span data-nextjs-container-errors-pseudo-html--diff-remove> <span data-nextjs-container-errors-pseudo-html--diff-remove>
{spaces + `"${serverContent}"` + '\n'} {spaces + `"${serverContent}"\n`}
</span> </span>
<span data-nextjs-container-errors-pseudo-html--diff-add> <span data-nextjs-container-errors-pseudo-html--diff-add>
{spaces + `"${clientContent}"` + '\n'} {spaces + `"${clientContent}"\n`}
</span> </span>
</Fragment> </Fragment>
) )
...@@ -154,6 +152,7 @@ export function PseudoHtmlDiff({ ...@@ -154,6 +152,7 @@ export function PseudoHtmlDiff({
clientContent, clientContent,
serverContent, serverContent,
isHtmlTagsWarning, isHtmlTagsWarning,
hydrationMismatchType,
]) ])
return ( return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment