Nickname replacement in greeting support

This commit is contained in:
Sean Edmunds
2026-01-28 16:25:17 -06:00
parent 9d46c5824d
commit 4e31378214
3 changed files with 5 additions and 1 deletions

View File

@@ -92,6 +92,7 @@ export function useCommonHooks() {
defaultValue: {
firstName: 'First',
lastName: 'Last',
nickname: 'Boss',
email: 'triggerUser@default.com',
physicalAddress: '1510 Polk St, Houston, TX 77002',
},

View File

@@ -51,8 +51,10 @@ function Header({
{greet
?.replace('$firstName', currentUser.firstName)
.replace('$lastName', currentUser.lastName)
.replace('$nickname', currentUser.nickname)
.replace('$^firstName', currentUser.firstName.toUpperCase())
.replace('$^lastName', currentUser.lastName.toUpperCase())}
.replace('$^lastName', currentUser.lastName.toUpperCase())
.replace('$^nickname', currentUser.nickname.toUpperCase())}
</Text>
</Stack>
<Stack

View File

@@ -3,4 +3,5 @@ export interface User {
lastName: string;
email: string;
physicalAddress: string;
nickname: string;
}