Skip to content

Commit 639d91b

Browse files
committed
update code style
1 parent 2c8eb4f commit 639d91b

File tree

1 file changed

+4
-4
lines changed
  • src/pages/[platform]/start/quickstart/nextjs-app-router-client-components

1 file changed

+4
-4
lines changed

src/pages/[platform]/start/quickstart/nextjs-app-router-client-components/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ import { generateClient } from "aws-amplify/data";
268268

269269
const client = generateClient<Schema>();
270270

271-
export default function App() {
271+
export default function HomePage() {
272272

273273
// highlight-start
274274
const { signOut } = useAuthenticator();
@@ -364,17 +364,17 @@ In the application client code, let's also render the username to distinguish di
364364
```tsx title="app/page.tsx"
365365
// ... imports
366366

367-
function App() {
367+
function HomePage() {
368368
// highlight-next-line
369-
const user = useAuthenticator().user;
369+
const { user, signOut } = useAuthenticator();
370370

371371
// ...
372372

373373
return (
374374
<main>
375375
// highlight-next-line
376376
<h1>{user?.signInDetails?.loginId}'s todos</h1>
377-
{/* ... rest of the UI */}
377+
{/* ... */}
378378
</main>
379379
)
380380
}

0 commit comments

Comments
 (0)