Skip to content

Commit 8923fcc

Browse files
authored
Update 01-login.md
1 parent aed26eb commit 8923fcc

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

articles/quickstart/webapp/nextjs/01-login.md

+8-15
Original file line numberDiff line numberDiff line change
@@ -200,32 +200,25 @@ export default function Profile() {
200200
{isLoading && <Loading />}
201201
{user && (
202202
<>
203-
<Row className="align-items-center profile-header mb-5 text-center text-md-left" data-testid="profile">
204-
<Col md={2}>
203+
{isLoading && <p>Loading...</p>}
204+
{user && (
205+
<div data-testid="profile" style={{ textAlign: "center" }}>
205206
<img
206207
src={user.picture}
207208
alt="Profile"
208-
className="rounded-circle img-fluid profile-picture mb-3 mb-md-0"
209-
decode="async"
209+
style={{ borderRadius: "50%", width: "80px", height: "80px" }}
210210
data-testid="profile-picture"
211211
/>
212-
</Col>
213-
<Col md>
214212
<h2 data-testid="profile-name">{user.name}</h2>
215-
<p className="lead text-muted" data-testid="profile-email">
216-
{user.email}
217-
</p>
218-
</Col>
219-
</Row>
220-
<Row data-testid="profile-json">
221-
<Highlight>{JSON.stringify(user, null, 2)}</Highlight>
222-
</Row>
213+
<p data-testid="profile-email">{user.email}</p>
214+
<pre data-testid="profile-json">{JSON.stringify(user, null, 2)}</pre>
215+
</div>
216+
)}
223217
</>
224218
)}
225219
</>
226220
);
227221
}
228-
229222
```
230223

231224
The `user` property contains sensitive information and artifacts related to the user's identity. As such, its availability depends on the user's authentication status. To prevent any render errors:

0 commit comments

Comments
 (0)