Commit 64f0412f authored by Muhammadali's avatar Muhammadali

update verison: 0.8.8

parent 8ff2e615
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "0.8.7", "version": "0.8.8",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -7,7 +7,10 @@ const DropDown = ({ reasons, reason, selectFunc }) => { ...@@ -7,7 +7,10 @@ const DropDown = ({ reasons, reason, selectFunc }) => {
const [visible, setVisible] = useState(false); const [visible, setVisible] = useState(false);
return ( return (
<DropDownStyle visible={visible} onClick={() => setVisible(!visible)}> <DropDownStyle
visible={visible}
onClick={() => setVisible(!visible)}
className='nocopy'>
<DropDownStyle.Text>{reason}</DropDownStyle.Text> <DropDownStyle.Text>{reason}</DropDownStyle.Text>
<DropDownStyle.DropDown visible={visible} className={'nocopy'}> <DropDownStyle.DropDown visible={visible} className={'nocopy'}>
{reasons.map((value, index) => ( {reasons.map((value, index) => (
......
...@@ -30,7 +30,7 @@ DropDownStyle.DropDown = styled.div` ...@@ -30,7 +30,7 @@ DropDownStyle.DropDown = styled.div`
flex-direction: column; flex-direction: column;
gap: 5px; gap: 5px;
width: 150px; width: 150px;
transition: 0.2s; transition: 0.1s;
padding: 10px 0; padding: 10px 0;
.select { .select {
padding: 5px 10px; padding: 5px 10px;
...@@ -49,7 +49,7 @@ DropDownStyle.DropDown = styled.div` ...@@ -49,7 +49,7 @@ DropDownStyle.DropDown = styled.div`
} }
: { : {
opacity: '0', opacity: '0',
transform: 'scale(0.9) translate(-50%, 0)', transform: 'scale(0) translate(-50%, 0)',
}} }}
`; `;
......
...@@ -164,7 +164,7 @@ const ModalPhoneNumpad = ({ ...@@ -164,7 +164,7 @@ const ModalPhoneNumpad = ({
reason={reason} reason={reason}
/> */} /> */}
<DropDown <DropDown
selectFunc={onSetDnd} sele ctFunc={onSetDnd}
reasons={reasons} reasons={reasons}
reason={reason} reason={reason}
/> />
......
...@@ -5,7 +5,7 @@ import { createRoot } from 'react-dom/client'; ...@@ -5,7 +5,7 @@ import { createRoot } from 'react-dom/client';
import { Toaster } from 'react-hot-toast'; import { Toaster } from 'react-hot-toast';
import { BoxDialer } from './lib/boxDIaler'; import { BoxDialer } from './lib/boxDIaler';
import Root from './root'; import Root from './root';
import './index.css';
window.BoxDialer = new BoxDialer(); window.BoxDialer = new BoxDialer();
const container = document.getElementById('boxdialerwidjet'); const container = document.getElementById('boxdialerwidjet');
......
...@@ -99,10 +99,12 @@ export const boxDialerWidjetPosition = { ...@@ -99,10 +99,12 @@ export const boxDialerWidjetPosition = {
hidden: { hidden: {
left: 'auto', left: 'auto',
right: '-300px', right: '-300px',
bottom: '80px',
}, },
seen: { seen: {
bottom: '80px',
left: 'auto', left: 'auto',
right: '25px', right: '12px',
}, },
}, },
}, },
......
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