Commit 11eb633b authored by Muhammadali's avatar Muhammadali

update-

parent fe8dfbb8
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.8.54", "version": "4.8.55",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -34,13 +34,13 @@ const ControlRenderBX = () => { ...@@ -34,13 +34,13 @@ const ControlRenderBX = () => {
console.log('window_alovoice_wsphone: ', window.alovoice_wsphone); console.log('window_alovoice_wsphone: ', window.alovoice_wsphone);
return ( return (
<div> <div>
{/*{wsphonedata?.number && (*/} {wsphonedata?.number && (
<Root <Root
setWsphonedata={setWsphonedata} setWsphonedata={setWsphonedata}
onSetDnd={window.alovoice_onsetdnd} onSetDnd={window.alovoice_onsetdnd}
wsphonedata={wsphonedata} wsphonedata={wsphonedata}
/> />
{/*)}*/} )}
</div> </div>
); );
}; };
......
/** @format */ /** @format */
import React, { useContext, useEffect, useState } from 'react'; import React, {useContext, useEffect, useState} from 'react';
import packageJson from '../../package.json'; import packageJson from '../../package.json';
import DefaultWidjetUi from '../components/DefaultWidjetUi'; import DefaultWidjetUi from '../components/DefaultWidjetUi';
import ModalPhoneNumpad from '../components/ModalPhoneNumpad'; import ModalPhoneNumpad from '../components/ModalPhoneNumpad';
...@@ -11,7 +11,7 @@ import InnerCaller from '../components/InnerCaller'; ...@@ -11,7 +11,7 @@ import InnerCaller from '../components/InnerCaller';
import {useConfigHoldMute} from "../storage" import {useConfigHoldMute} from "../storage"
// import { contextModalEventProperty } from '../context/modalEventProperty'; // 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;
// // context // // context
...@@ -73,7 +73,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { ...@@ -73,7 +73,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
const reasonSelect = async (e) => { const reasonSelect = async (e) => {
let result = await onSetDnd(e); let result = await onSetDnd(e);
if(setWsphonedata){ if (setWsphonedata) {
setWsphonedata(result); setWsphonedata(result);
} }
console.log('reasonSelect_setWsphonedata', typeof setWsphonedata) console.log('reasonSelect_setWsphonedata', typeof setWsphonedata)
...@@ -141,7 +141,8 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { ...@@ -141,7 +141,8 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
} }
}; };
if (!wsphonedata || !wsphonedata?.number || !wsphonedata?.position) return; // if (!wsphonedata || !wsphonedata?.number || !wsphonedata?.position) return;
console.log('wsphonedata_variant: ', wsphonedata.variant, !wsphonedata, !wsphonedata?.number, !wsphonedata?.position)
return ( return (
<> <>
{selectWidjetType(wsphonedata.variant)} {selectWidjetType(wsphonedata.variant)}
...@@ -182,7 +183,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { ...@@ -182,7 +183,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
innerTimer={innerTimer} innerTimer={innerTimer}
/> />
<SecondNotifSip secondLine={secondLine} /> <SecondNotifSip secondLine={secondLine}/>
</> </>
); );
}; };
......
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