File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -370,6 +370,19 @@ export const Header: React.FC = () => {
370370 >
371371 Feedback
372372 </ a >
373+ { user ?. lichessId && (
374+ < >
375+ < Link href = "/profile" className = "uppercase" >
376+ Profile
377+ </ Link >
378+ < Link href = "/settings" className = "uppercase" >
379+ Settings
380+ </ Link >
381+ < button onClick = { logout } className = "uppercase text-left" >
382+ Logout
383+ </ button >
384+ </ >
385+ ) }
373386 </ div >
374387 < div className = "flex w-full flex-row items-center gap-3 px-4" >
375388 < a
@@ -385,7 +398,20 @@ export const Header: React.FC = () => {
385398 loading = { leaderboardLoading }
386399 />
387400 ) }
388- { userInfo }
401+ { user ?. lichessId ? (
402+ < div className = "flex items-center gap-2" >
403+ < span className = "material-symbols-outlined text-xl text-primary/80" >
404+ account_circle
405+ </ span >
406+ < span className = "text-sm font-medium text-primary/90" >
407+ { user ?. displayName }
408+ </ span >
409+ </ div >
410+ ) : (
411+ < button onClick = { connectLichess } className = "uppercase" >
412+ Sign in
413+ </ button >
414+ ) }
389415 </ div >
390416 </ div >
391417 ) }
You can’t perform that action at this time.
0 commit comments