Commit 14e49d76 authored by Muhammadali's avatar Muhammadali

update-

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