added user csv data
This commit is contained in:
@ -79,7 +79,7 @@ const TheContent = () => {
|
||||
return true;
|
||||
}
|
||||
|
||||
function usePathname(){
|
||||
function userPathname(){
|
||||
const location = useLocation();
|
||||
return location.pathname;
|
||||
}
|
||||
@ -99,7 +99,7 @@ const TheContent = () => {
|
||||
const _empcode = UserData.employee_code;
|
||||
const json_str = '[{"firstname": "' + _firstname + '", "lastname":"' +_lastname+ '", "email":" ' + _email + '", "empcode": "' + _empcode + '"}]';
|
||||
if(_empcode !== null && _empcode !== undefined){
|
||||
console.log(usePathname());
|
||||
console.log(userPathname());
|
||||
|
||||
postUserData(json_str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user