Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 12 additions & 14 deletions tests/fixtures/app-basic/app/interception-dyn-seg/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,17 @@ export default function Layout({
const modalSegments = useSelectedLayoutSegments("modal");

return (
<html>
<body>
<div id="children">
<div>CHILDREN SLOT:</div>
{children}
</div>
<div id="modal">
<div>MODAL SLOT:</div>
<div id="modal-segment">modal segment: {modalSegment}</div>
<div id="modal-segments">modal segments: {modalSegments.join("|")}</div>
{modal}
</div>
</body>
</html>
<>
<div id="children">
<div>CHILDREN SLOT:</div>
{children}
</div>
<div id="modal">
<div>MODAL SLOT:</div>
<div id="modal-segment">modal segment: {modalSegment}</div>
<div id="modal-segments">modal segments: {modalSegments.join("|")}</div>
{modal}
</div>
</>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ export default function Layout({
}) {
return (
<Suspense>
<html>
<body>
<div id="children">{children}</div>
<div id="modal">{modal}</div>
</body>
</html>
<div id="children">{children}</div>
<div id="modal">{modal}</div>
</Suspense>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ export default async function LocaleLayout({
}) {
const { locale } = await params;
return (
<html lang={locale}>
<body>
<p id="locale-label">Locale: {locale}</p>
{children}
</body>
</html>
<>
<p id="locale-label">Locale: {locale}</p>
{children}
</>
);
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<html>
<body>
<div id="children">{children}</div>
</body>
</html>
);
return <div id="children">{children}</div>;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<html>
<body>
<div id="children">{children}</div>
</body>
</html>
);
return <div id="children">{children}</div>;
}
Loading