-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update functionality for Admin profile
- Loading branch information
1 parent
1c0609d
commit 0d560b6
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,12 +139,12 @@ export function Profile(props) { | |
let firstName = props.adminData.firstName ? props.adminData.firstName : ""; | ||
let lastName = props.adminData.lastName ? props.adminData.lastName : ""; | ||
let Name = firstName + " " + lastName; | ||
setName(Name || "xyz@gmail.com"); | ||
setFirstName(firstName || "xyz@gmail.com"); | ||
setLastName(lastName || "[email protected]"); | ||
setName(Name || "xyz"); | ||
setFirstName(firstName || "xyz"); | ||
setLastName(lastName || ""); | ||
setEmail(props.adminData.email || "[email protected]"); | ||
setPhone(props.adminData.contact || "[email protected]"); | ||
setUsername(props.adminData.username || "[email protected]"); | ||
setPhone(props.adminData.contact || "+919099999990"); | ||
setUsername(props.adminData.username || "xyzIo"); | ||
}, [props]); | ||
|
||
return ( | ||
|