add access token
This commit is contained in:
@@ -9,6 +9,7 @@ import React, { useEffect, useRef, useState } from 'react';
|
||||
import { Button, Modal } from 'react-bootstrap';
|
||||
import swal from 'sweetalert';
|
||||
import { HOST } from '../../config/index';
|
||||
import Store from '../../store';
|
||||
|
||||
const { Option } = Select;
|
||||
|
||||
@@ -85,6 +86,7 @@ const ModalUser = (props) => {
|
||||
'Accept': 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
// 'Authorization': token,
|
||||
'Authorization': Store.getState().isLogin.access_token,
|
||||
},
|
||||
data: dataPost,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user