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: { defaultValue: {
firstName: 'First', firstName: 'First',
lastName: 'Last', lastName: 'Last',
nickname: 'Boss',
email: 'triggerUser@default.com', email: 'triggerUser@default.com',
physicalAddress: '1510 Polk St, Houston, TX 77002', physicalAddress: '1510 Polk St, Houston, TX 77002',
}, },

View File

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

View File

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