Skip to content

Commit 6afab2e

Browse files
committed
update
1 parent 6d8b244 commit 6afab2e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

MyApp.Client/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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>

MyApp.Client/src/profile.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import Page from "@/components/Page"
2-
import { PrimaryButton, SecondaryButton, TextLink } from "@servicestack/react"
2+
import { PrimaryButton, SecondaryButton } from "@servicestack/react"
33
import { appAuth, ValidateAuth } from "@/lib/auth"
44

55
function 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
}

0 commit comments

Comments
 (0)