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
19be58e4
Commit
19be58e4
authored
Sep 08, 2023
by
Muhammadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e28a7b08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
index.jsx
src/root/index.jsx
+6
-3
No files found.
src/root/index.jsx
View file @
19be58e4
...
...
@@ -14,7 +14,7 @@ const Root = ({ data, onSetDnd }) => {
// localStorage.setItem('activeValue', +localValue + 1);
// else localStorage.setItem('activeValue', 1);
// }, []);
const
[
dataSecond
,
setDataSecond
]
=
useState
(
{}
);
const
[
dataSecond
,
setDataSecond
]
=
useState
(
[]
);
if
(
!
data
)
{
data
=
{
iscloud
:
true
,
...
...
@@ -34,6 +34,9 @@ const Root = ({ data, onSetDnd }) => {
data
=
window
.
alovoice_wsphone
;
onSetDnd
=
window
.
alovoice_onsetdnd
;
}
useEffect
(()
=>
{
console
.
log
(
data
,
'
data
'
);
},
[
data
.
reason
]);
const
[
phoneModal
,
setPhoneModal
]
=
useState
(
false
);
const
[
dynamicValue
,
setDynamicValue
]
=
useState
(
'
pending
'
);
...
...
@@ -70,7 +73,7 @@ const Root = ({ data, onSetDnd }) => {
phoneNumber=
{
data
?.
number
}
reason=
{
data
?.
reason
}
widjetVersion=
{
packageJson
?.
version
}
leftTime=
{
data
Second
.
lefttime
}
leftTime=
{
data
.
lefttime
}
position=
{
data
.
position
||
'
bottomLeft
'
}
onClick=
{
()
=>
{
phoneModal
?
setPhoneModal
(
false
)
:
setPhoneModal
(
true
);
...
...
@@ -84,7 +87,7 @@ const Root = ({ data, onSetDnd }) => {
phoneNumber=
{
data
?.
number
}
reason=
{
data
?.
reason
}
widjetVersion=
{
packageJson
?.
version
}
leftTime=
{
data
Second
.
lefttime
}
leftTime=
{
data
.
lefttime
}
position=
{
data
.
position
||
'
bottomLeft
'
}
onClick=
{
()
=>
{
phoneModal
?
setPhoneModal
(
false
)
:
setPhoneModal
(
true
);
...
...
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