Commit 11eb633b authored by Muhammadali's avatar Muhammadali

update-

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