Commit fd9b0c88 authored by Muhammadali's avatar Muhammadali

update-

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