File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ function App() {
4646 </ SecondaryButton >
4747 </ div >
4848 </ > )
49- : ( < SecondaryButton href = "/profile" className = "m-2 " >
50- Sign In
49+ : ( < SecondaryButton href = "/profile" className = "items-center " >
50+ 🙍🏻♂️ My Profile
5151 </ SecondaryButton > )
5252 }
5353 </ div >
Original file line number Diff line number Diff line change 11import Page from "@/components/Page"
2- import { PrimaryButton , SecondaryButton , TextLink } from "@servicestack/react"
2+ import { PrimaryButton , SecondaryButton } from "@servicestack/react"
33import { appAuth , ValidateAuth } from "@/lib/auth"
44
55function Profile ( ) {
66 const { user, signOut } = appAuth ( )
7- return ( < Page title = { user . displayName + ' Profile' } >
7+ return ( < Page title = { ( user ! . displayName || user ! . userName ) + ' Profile' } >
88 < div className = "mx-auto flex flex-col items-center" >
99 < img className = "my-4 size-36 rounded-full" src = { user . profileUrl } alt = "User Profile" />
1010 < div className = "text-gray-900 dark:text-gray-100" > { user . displayName } </ div >
@@ -18,9 +18,9 @@ function Profile() {
1818 < PrimaryButton className = "mt-8" href = "/Identity/Account/Manage" >
1919 Identity Auth Account
2020 </ PrimaryButton >
21- < TextLink className = "mt-8" href = "/" >
21+ < SecondaryButton className = "mt-8" href = "/" >
2222 🏠 Home
23- </ TextLink >
23+ </ SecondaryButton >
2424 </ div >
2525 </ Page > )
2626}
You can’t perform that action at this time.
0 commit comments