Unverified Commit f713c954 authored by Reza Mauliadi's avatar Reza Mauliadi Committed by GitHub

Remove duplicate code example in authentication page (#65354)

I found a duplicate code example in
https://nextjs.org/docs/app/building-your-application/authentication#context-providers
for the layout.ts.
Co-authored-by: 's avatarSam Ko <sam@vercel.com>
parent c9291d6d
...@@ -1532,20 +1532,6 @@ export default function RootLayout({ children }) { ...@@ -1532,20 +1532,6 @@ export default function RootLayout({ children }) {
} }
``` ```
```tsx filename="app/layout.ts" switcher
import { ContextProvider } from 'auth-lib'
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>
<ContextProvider>{children}</ContextProvider>
</body>
</html>
)
}
```
```tsx filename="app/ui/profile.ts switcher ```tsx filename="app/ui/profile.ts switcher
"use client"; "use client";
......
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