mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This PR fixes a bug in which the layout files were not picked up if they were direct children of a parallel route slot. Note: there's a bunch of other files that I've used for debugging that are not used for the test but I'm leaving them for future me. link NEXT-969
14 lines
318 B
TypeScript
14 lines
318 B
TypeScript
import Link from 'next/link'
|
|
|
|
export default function Layout({ children, slot, groupslot }) {
|
|
return (
|
|
<div>
|
|
<h1>Main Layout</h1>
|
|
{children}
|
|
<div id="slot">{slot}</div>
|
|
<div id="groupslot">{groupslot}</div>
|
|
<Link href="/parallel-layout/sub/route">/sub/route</Link>
|
|
</div>
|
|
)
|
|
}
|