Skip to content

Commit 5f24188

Browse files
committed
profile changes
1 parent b9d5c77 commit 5f24188

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

apps/dashboard/src/pages/profile.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Source: Figma "Incubator-design-file" › node 350:504 "Input"
55
*
66
* A centred modal card for collecting initial user profile information:
7-
* • Greeting — "Hi {name}!" centred at the top
7+
* • Greeting — "Hi {userName}!" centred at the top; falls back to "Hi there!"
88
* • Major field — styled dropdown trigger (flex-1)
99
* • Grad Year field — styled dropdown trigger (shrink-0, content-width)
1010
* • Minor field — optional, styled dropdown trigger (full-width)
@@ -86,7 +86,7 @@ const BODY2_REGULAR =
8686
// ─── Public types ─────────────────────────────────────────────────────────────
8787

8888
export interface ProfileProps extends ComponentPropsWithoutRef<'div'> {
89-
/** First name shown in the greeting, e.g. "Megan" → "Hi Megan!". */
89+
/** First name shown in the greeting, e.g. "Alex" → "Hi Alex!". Falls back to "Hi there!" when omitted. */
9090
userName?: string;
9191

9292
// ── Major ──
@@ -190,18 +190,18 @@ function ProfileSelectField({
190190
* │ Hi {userName}! │ ← greeting, centred
191191
* │ │
192192
* │ Major ──────────────── Grad Year │ ← side-by-side, major flex-1
193-
* │ [ Computer Science ▾ ] [2026▾]│
193+
* │ [ Select major ▾ ] [Year▾]│
194194
* │ │
195195
* │ Minor (optional) │
196-
* │ [ Linguistics ▾ ] │
196+
* │ [ Select minor ▾ ] │
197197
* │ │
198198
* │ Interests │
199199
* │ [Internships] [Early Career] [Tech] │
200200
* │ [+] │
201201
* └──────────────────────────────────────┘
202202
*/
203203
export function Profile({
204-
userName = 'Megan',
204+
userName,
205205
major,
206206
onMajorChange,
207207
gradYear,
@@ -278,7 +278,7 @@ export function Profile({
278278
}
279279
style={{ fontVariationSettings: "'opsz' 14" }}
280280
>
281-
Hi {userName}!
281+
{userName ? `Hi ${userName}!` : 'Hi there!'}
282282
</h2>
283283
</div>
284284

0 commit comments

Comments
 (0)