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
a5277fb1
Commit
a5277fb1
authored
Aug 30, 2023
by
Muhammadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updatye verison: 0.9.2
parent
0f5bcb8f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
68 deletions
+2
-68
package.json
package.json
+1
-1
index.jsx
src/components/DropDown/index.jsx
+1
-1
index.jsx
src/components/ModalPhoneNumpad/index.jsx
+0
-1
DropDown.jsx
src/components/TailwindComponents/DropDown.jsx
+0
-61
style.css
src/components/TailwindComponents/style.css
+0
-3
index.jsx
src/root/index.jsx
+0
-1
No files found.
package.json
View file @
a5277fb1
{
{
"name"
:
"boxdialer"
,
"name"
:
"boxdialer"
,
"version"
:
"0.9.
1
"
,
"version"
:
"0.9.
2
"
,
"description"
:
""
,
"description"
:
""
,
"main"
:
"src/boxDialer.js"
,
"main"
:
"src/boxDialer.js"
,
"scripts"
:
{
"scripts"
:
{
...
...
src/components/DropDown/index.jsx
View file @
a5277fb1
...
@@ -12,7 +12,7 @@ const DropDown = ({ reasons, reason, selectFunc }) => {
...
@@ -12,7 +12,7 @@ const DropDown = ({ reasons, reason, selectFunc }) => {
onClick=
{
()
=>
setVisible
(
!
visible
)
}
onClick=
{
()
=>
setVisible
(
!
visible
)
}
className=
'nocopy'
>
className=
'nocopy'
>
<
DropDownStyle
.
Text
>
{
reason
}
</
DropDownStyle
.
Text
>
<
DropDownStyle
.
Text
>
{
reason
}
</
DropDownStyle
.
Text
>
<
DropDownStyle
.
DropDown
visible=
{
visible
}
className=
{
'
nocopy
'
}
>
<
DropDownStyle
.
DropDown
visible
Value
=
{
visible
}
className=
{
'
nocopy
'
}
>
{
reasons
.
map
((
value
,
index
)
=>
(
{
reasons
.
map
((
value
,
index
)
=>
(
<
div
className=
'select'
key=
{
index
}
onClick=
{
()
=>
selectFunc
(
value
)
}
>
<
div
className=
'select'
key=
{
index
}
onClick=
{
()
=>
selectFunc
(
value
)
}
>
{
value
}
{
value
}
...
...
src/components/ModalPhoneNumpad/index.jsx
View file @
a5277fb1
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
import
React
,
{
useCallback
,
useEffect
,
useState
}
from
'
react
'
;
import
React
,
{
useCallback
,
useEffect
,
useState
}
from
'
react
'
;
import
ModalPhoneNumpadStyle
,
{
NumberButton
,
Input
}
from
'
./style
'
;
import
ModalPhoneNumpadStyle
,
{
NumberButton
,
Input
}
from
'
./style
'
;
import
numbers
from
'
./numbers
'
;
import
numbers
from
'
./numbers
'
;
import
DropDownTailwind
from
'
../TailwindComponents/DropDown
'
;
import
CallIcon
from
'
@mui/icons-material/Call
'
;
import
CallIcon
from
'
@mui/icons-material/Call
'
;
import
{
toast
}
from
'
react-hot-toast
'
;
import
{
toast
}
from
'
react-hot-toast
'
;
import
DropDown
from
'
../DropDown
'
;
import
DropDown
from
'
../DropDown
'
;
...
...
src/components/TailwindComponents/DropDown.jsx
deleted
100644 → 0
View file @
0f5bcb8f
/** @format */
import
{
Menu
,
Transition
}
from
'
@headlessui/react
'
;
import
React
,
{
Fragment
}
from
'
react
'
;
import
'
./style.css
'
;
function
classNames
(...
classes
)
{
return
classes
.
filter
(
Boolean
).
join
(
'
'
);
}
const
DropDownTailwind
=
({
reasons
,
reason
,
selectFunc
})
=>
{
return
(
<
Menu
as=
'div'
className=
'text-left w-full h-full'
>
<
div
className=
'w-full'
>
<
Menu
.
Button
style=
{
{
backgroundColor
:
'
#5e5e5e
'
,
width
:
'
100%
'
,
height
:
'
30px
'
,
color
:
'
white
'
,
display
:
'
flex
'
,
alignItems
:
'
center
'
,
}
}
className=
'inline-flex justify-center rounded-md font-semibold text-gray-900 shadow-sm hover:bg-gray-50 gap-1 border-0 text-sm'
>
{
reason
?
reason
:
'
Nothing
'
}
</
Menu
.
Button
>
</
div
>
{
reasons
&&
reasons
.
length
&&
(
<
Transition
as=
{
Fragment
}
enter=
'transition ease-out duration-100'
enterFrom=
'transform opacity-0 scale-95'
enterTo=
'transform opacity-100 scale-100'
leave=
'transition ease-in duration-75'
leaveFrom=
'transform opacity-100 scale-100'
leaveTo=
'transform opacity-0 scale-95'
>
<
Menu
.
Items
className=
'absolute left-1 bottom-0 z-10 mt-2 w-56 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none'
>
<
div
className=
'py-3 flex flex-col'
>
{
reasons
.
map
((
value
,
index
)
=>
(
<
Menu
.
Item
onClick=
{
()
=>
selectFunc
(
value
)
}
key=
{
index
}
>
{
({
active
})
=>
(
<
p
className=
{
classNames
(
active
?
'
bg-gray-100 text-gray-900
'
:
'
text-gray-700
'
,
'
block px-5 py-1 text-lg
'
,
)
}
>
{
value
}
</
p
>
)
}
</
Menu
.
Item
>
))
}
</
div
>
</
Menu
.
Items
>
</
Transition
>
)
}
</
Menu
>
);
};
export
default
DropDownTailwind
;
src/components/TailwindComponents/style.css
deleted
100644 → 0
View file @
0f5bcb8f
@tailwind
base
;
@tailwind
components
;
@tailwind
utilities
;
\ No newline at end of file
src/root/index.jsx
View file @
a5277fb1
/** @format */
/** @format */
import
WidjetButton
from
'
../components/WidjetButton
'
;
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
packageJson
from
'
../../package.json
'
;
import
packageJson
from
'
../../package.json
'
;
import
DefaultWidjetUi
from
'
../components/DefaultWidjetUi
'
;
import
DefaultWidjetUi
from
'
../components/DefaultWidjetUi
'
;
...
...
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