Commit 1304f539 authored by Muhammadali's avatar Muhammadali

update-2.3.1

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