Skip to content

Commit 4b54fa4

Browse files
committed
bio
1 parent f010977 commit 4b54fa4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

frontend/app/old-app/components/ProfileDetail.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,12 @@ function ProfileDetail({ initialUser }) {
234234
value={bioInput}
235235
onChange={(e) => setBioInput(e.target.value)}
236236
variant="outlined"
237+
slotProps={{
238+
input: {
239+
maxLength: 256
240+
}
241+
}}
242+
helperText={`${bioInput.length}/256 characters`}
237243
/>
238244
<Button
239245
onClick={handleSaveBio}
@@ -255,7 +261,7 @@ function ProfileDetail({ initialUser }) {
255261
) : (
256262
<Box sx={{ display: 'flex', alignItems: 'flex-start', gap: 1 }}>
257263
<Typography>
258-
{profile.bio || "No bio yet"}
264+
{profile.bio || `Hello, my name is ${profile.username} 👋`}
259265
</Typography>
260266
{isOwner && (
261267
<Button

0 commit comments

Comments
 (0)