Nickname replacement in greeting support
This commit is contained in:
@@ -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',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -3,4 +3,5 @@ export interface User {
|
|||||||
lastName: string;
|
lastName: string;
|
||||||
email: string;
|
email: string;
|
||||||
physicalAddress: string;
|
physicalAddress: string;
|
||||||
|
nickname: string;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user