Commit bc3a2277 authored by Muhammadali's avatar Muhammadali

update-

parent 5fb0afc7
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.8.46", "version": "4.8.47",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -13,6 +13,7 @@ import { contextModalEventProperty } from '../context/modalEventProperty'; ...@@ -13,6 +13,7 @@ import { contextModalEventProperty } from '../context/modalEventProperty';
const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
const boxDialer = window.BoxDialer; const boxDialer = window.BoxDialer;
const [callEvents, setCallEvents] = useContext(contextModalEventProperty);
const [phoneModal, setPhoneModal] = useState(false); const [phoneModal, setPhoneModal] = useState(false);
const [dynamicValue, setDynamicValue] = useState('pending'); const [dynamicValue, setDynamicValue] = useState('pending');
const [modalState, setModalState] = useState(false); const [modalState, setModalState] = useState(false);
...@@ -24,11 +25,6 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { ...@@ -24,11 +25,6 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
from: '', from: '',
}); });
const [callEvents, setCallEvents] = useContext(
typeof contextModalEventProperty == 'undefined'
? {}
: contextModalEventProperty,
);
console.log('state_callEvents: ', callEvents); console.log('state_callEvents: ', callEvents);
// const [callEvents, setCallEvents] = useState(null); // const [callEvents, setCallEvents] = useState(null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment