Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BoxDialer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
BoxDialer
Commits
1304f539
Commit
1304f539
authored
Sep 21, 2023
by
Muhammadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update-2.3.1
parent
4f330597
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
14 deletions
+2
-14
package.json
package.json
+1
-1
style.js
src/components/CallCardDropDown/style.js
+0
-1
index.js
src/index.js
+0
-2
controlRenderBX.jsx
src/lib/controlRenderBX.jsx
+0
-6
index.jsx
src/root/index.jsx
+1
-4
No files found.
package.json
View file @
1304f539
{
{
"name"
:
"boxdialer"
,
"name"
:
"boxdialer"
,
"version"
:
"2.3.
0
"
,
"version"
:
"2.3.
1
"
,
"description"
:
""
,
"description"
:
""
,
"main"
:
"src/boxDialer.js"
,
"main"
:
"src/boxDialer.js"
,
"scripts"
:
{
"scripts"
:
{
...
...
src/components/CallCardDropDown/style.js
View file @
1304f539
...
@@ -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
?
{
?
{
...
...
src/index.js
View file @
1304f539
...
@@ -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>
,
...
...
src/lib/controlRenderBX.jsx
View file @
1304f539
...
@@ -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
&&
(
...
...
src/root/index.jsx
View file @
1304f539
...
@@ -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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment