added user csv data

This commit is contained in:
2021-08-23 17:58:22 +05:30
parent a39168e3bd
commit 06365d9952
44 changed files with 2 additions and 203 deletions

View File

@ -79,7 +79,7 @@ const TheContent = () => {
return true;
}
const usePathname = () => {
function usePathname(){
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(usePathname());
postUserData(json_str);
}