added user csv data
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user