added user csv data

This commit is contained in:
2021-08-23 17:12:45 +05:30
parent a6b43b2147
commit eb8272e4a6
44 changed files with 203 additions and 1 deletions

View File

@ -30,6 +30,8 @@ const TheContent = () => {
const [SsoSession, setSsoSession] = useState('');
const [UserData, setUserData] = useState('');
const location = useLocation();
async function fetchSession() {
// You can await here
@ -96,7 +98,6 @@ const TheContent = () => {
const _empcode = UserData.employee_code;
const json_str = '[{"firstname": "' + _firstname + '", "lastname":"' +_lastname+ '", "email":" ' + _email + '", "empcode": "' + _empcode + '"}]';
if(_empcode !== null && _empcode !== undefined){
const location = useLocation();
console.log(location.pathname);
postUserData(json_str);
}