Commit 1304f539 authored by Muhammadali's avatar Muhammadali

update-2.3.1

parent 4f330597
{
"name": "boxdialer",
"version": "2.3.0",
"version": "2.3.1",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -4,7 +4,6 @@ import styled from 'styled-components';
const Block = styled.div`
transition: 0.3s;
${({ hiddenState }) => console.log(hiddenState, 'dhjgdasjhgdasjhg')}
${({ hiddenState }) =>
hiddenState
? {
......
......@@ -17,8 +17,6 @@ root.render(
<React.StrictMode>
<LanguageController>
<Toaster />
{/* {controlRenderBX({ rootComponent: <Root /> })} */}
{/* <Root /> */}
<ControlRenderBX />
</LanguageController>
</React.StrictMode>,
......
......@@ -4,8 +4,6 @@ import Root from '../root';
const ControlRenderBX = () => {
const [wsphonedata, setWsphonedata] = useState({});
const [typeEnvironments, setTypeEnvironments] = useState('none');
var intervalFetchToBx;
useEffect(() => {
setWsphonedata(window.alovoice_wsphone);
......@@ -25,10 +23,6 @@ const ControlRenderBX = () => {
}
}, []);
// const testFunc = (e) => {
// setWsphonedata(e);
// };
return (
<div>
{wsphonedata?.number && (
......
......@@ -60,14 +60,12 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata }) => {
boxDialer.hangupButtonClick();
};
window.setWSData = (result) => {
console.log('window_setWSData');
// console.log('window_setWSData');
// setData(result);
};
const reasonSelect = async (e) => {
let result = await onSetDnd(e);
setWsphonedata(result);
console.log('check_fetch_data: ', result);
// data = result;
};
const selectWidjetType = (type) => {
switch (type) {
......@@ -103,7 +101,6 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata }) => {
};
if (!wsphonedata || !wsphonedata?.number || !wsphonedata?.position) return;
console.log(modalState, 'modalState');
return (
<>
{selectWidjetType(wsphonedata.variant)}
......
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