Commit 14e49d76 authored by Muhammadali's avatar Muhammadali

update-

parent a0eabc04
{
"name": "boxdialer",
"version": "4.8.42",
"version": "4.8.43",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -5,7 +5,7 @@ import { createContext } from 'react';
import { useState } from 'react';
export const contextModalEventProperty = createContext();
const ModalEventProperty = ({ children }) => {
const [callEvents, setCallEvents] = useState();
const [callEvents, setCallEvents] = useState(null);
return (
<contextModalEventProperty.Provider value={[callEvents, setCallEvents]}>
{children}
......
......@@ -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,7 +21,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
type: null,
from: '',
});
const [callEvents, setCallEvents] = useContext(contextModalEventProperty);
// const [callEvents, setCallEvents] = useContext(contextModalEventProperty);
const boxDialer = window.BoxDialer;
console.log('state_callEvents: ', callEvents);
useEffect(() => {
......
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