From 856521bf4771b875fc1beac04cc4f189a28c8bb4 Mon Sep 17 00:00:00 2001 From: Arfa Ahmed Date: Thu, 7 Nov 2024 14:11:34 +0500 Subject: [PATCH] docs(parallel-routes): update 11-parallel-routes.mdx example for modal closing (#72210) docs(parallel-routes): update 11-parallel-routes.mdx example for modal closing - Updated `11-parallel-routes.mdx` to replace `'...'` with `null` in the `page.tsx` return statement inside the slot for closing the modal when navigating using `Link`. - Also applied the same change in the `default.tsx` file to ensure consistent behavior in the example. ![image](https://github.com/user-attachments/assets/e0c4b2cf-01e1-4cda-8488-11d12a75d32a) ![image](https://github.com/user-attachments/assets/fca6d051-8e43-4022-986c-60557d5da5e6) Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com> --- .../01-routing/11-parallel-routes.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/01-app/02-building-your-application/01-routing/11-parallel-routes.mdx b/docs/01-app/02-building-your-application/01-routing/11-parallel-routes.mdx index 894bd797c5956..bab22cf443a39 100644 --- a/docs/01-app/02-building-your-application/01-routing/11-parallel-routes.mdx +++ b/docs/01-app/02-building-your-application/01-routing/11-parallel-routes.mdx @@ -264,13 +264,13 @@ Then, inside the `@auth` slot, add [`default.js`](/docs/app/api-reference/file-c ```tsx filename="app/@auth/default.tsx" switcher export default function Default() { - return '...' + return null } ``` ```jsx filename="app/@auth/default.js" switcher export default function Default() { - return '...' + return null } ``` @@ -433,13 +433,13 @@ export function Modal({ children }) { ```tsx filename="app/@auth/page.tsx" switcher export default function Page() { - return '...' + return null } ``` ```jsx filename="app/@auth/page.js" switcher export default function Page() { - return '...' + return null } ``` @@ -447,13 +447,13 @@ Or if navigating to any other page (such as `/foo`, `/foo/bar`, etc), you can us ```tsx filename="app/@auth/[...catchAll]/page.tsx" switcher export default function CatchAll() { - return '...' + return null } ``` ```jsx filename="app/@auth/[...catchAll]/page.js" switcher export default function CatchAll() { - return '...' + return null } ```