Skip to content

Commit 9438b53

Browse files
committed
Fix examples
1 parent 8472f19 commit 9438b53

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/NextJs.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const AdminApp = () => (
7979
export default AdminApp;
8080
```
8181

82-
Then create a `src/components/AdminApp.tsx` file with the following:
82+
Then create a `src/components/Admin.tsx` file with the following:
8383

8484
```tsx
8585
"use client";
@@ -106,10 +106,10 @@ The file to modify depends on the router system you chose during setup:
106106
- Pages Router: `src/pages/index.tsx`.
107107

108108
```tsx
109-
import AdminApp from "./components/Admin";
109+
import Admin from "./components/Admin";
110110

111111
export default function Page() {
112-
return <AdminApp />
112+
return <Admin />
113113
};
114114
```
115115

@@ -131,10 +131,10 @@ This implies the creation of a new page in the Next.js app. Create a new file at
131131
No matter which system you choose, the file should contain the same code:
132132

133133
```tsx
134-
import AdminApp from "../components/Admin";
134+
import Admin from "../components/Admin";
135135

136136
export default function Page() {
137-
return <AdminApp />
137+
return <Admin />
138138
};
139139
```
140140

0 commit comments

Comments
 (0)