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