Commit fd9b0c88 authored by Muhammadali's avatar Muhammadali

update-

parent 843061fa
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.8.43", "version": "4.8.45",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -8,7 +8,7 @@ import Modal from '../components/Modal'; ...@@ -8,7 +8,7 @@ import Modal from '../components/Modal';
import BxMiniWidjetUi from '../components/BxMiniWidjetUi'; import BxMiniWidjetUi from '../components/BxMiniWidjetUi';
import SecondNotifSip from '../components/SecondNotifSip'; import SecondNotifSip from '../components/SecondNotifSip';
import InnerCaller from '../components/InnerCaller'; import InnerCaller from '../components/InnerCaller';
// import { contextModalEventProperty } from '../context/modalEventProperty'; import { contextModalEventProperty } from '../context/modalEventProperty';
const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
const [phoneModal, setPhoneModal] = useState(false); const [phoneModal, setPhoneModal] = useState(false);
...@@ -21,10 +21,15 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { ...@@ -21,10 +21,15 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
type: null, type: null,
from: '', from: '',
}); });
// const [callEvents, setCallEvents] = useContext(contextModalEventProperty); const [callEventsContext, setCallEventsContext] = useContext(
const [callEvents, setCallEvents] = useState(); contextModalEventProperty,
);
const [callEvents, setCallEvents] = useState(null);
const boxDialer = window.BoxDialer; const boxDialer = window.BoxDialer;
// console.log('state_callEvents: ', callEvents); console.log('state_callEvents: ', callEvents);
useEffect(() => {
setCallEventsContext(callEvents);
}, [callEvents]);
useEffect(() => { useEffect(() => {
if (secondLine) { if (secondLine) {
setTimeout(() => { setTimeout(() => {
......
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