Commit 87fe62ad authored by Muhammadali's avatar Muhammadali

update-

parent fb9ff125
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.0.6", "version": "4.0.7",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -8,7 +8,7 @@ import { toast } from 'react-hot-toast'; ...@@ -8,7 +8,7 @@ import { toast } from 'react-hot-toast';
import DropDown from '../DropDown'; import DropDown from '../DropDown';
import { CommentsDisabledOutlined } from '@mui/icons-material'; import { CommentsDisabledOutlined } from '@mui/icons-material';
import CallHistoryInputDropdown from '../CallHistoryInputDropdown'; import CallHistoryInputDropdown from '../CallHistoryInputDropdown';
import KeyboardControlKeyIcon from '@mui/icons-material/KeyboardControlKey';
const ModalPhoneNumpad = ({ const ModalPhoneNumpad = ({
phoneModal, phoneModal,
modalState, modalState,
...@@ -24,6 +24,7 @@ const ModalPhoneNumpad = ({ ...@@ -24,6 +24,7 @@ const ModalPhoneNumpad = ({
const [inputValue, setInputValue] = useState(''); const [inputValue, setInputValue] = useState('');
const [call_history, setCall_history] = useState([]); const [call_history, setCall_history] = useState([]);
const [numberSelectHistory, setNumberSelectHistory] = useState(0); const [numberSelectHistory, setNumberSelectHistory] = useState(0);
const [exNum, setExNum] = useState();
useEffect(() => { useEffect(() => {
let currentCalls = localStorage.getItem('callhistory') let currentCalls = localStorage.getItem('callhistory')
...@@ -258,15 +259,19 @@ const ModalPhoneNumpad = ({ ...@@ -258,15 +259,19 @@ const ModalPhoneNumpad = ({
</NumberButton> </NumberButton>
<NumberButton <NumberButton
style={{ gridColumn: '2/4' }} style={{ gridColumn: '2/4' }}
onClick={() => callButton()}
status={dynamicValue} status={dynamicValue}
type={'call_button'}> type={'call_button'}>
<NumberButton.CallButton> <NumberButton.CallButton exNum={exNum}>
<div className='left'> <div className='left' onClick={() => callButton()}>
<CallIcon /> <CallIcon />
</div> </div>
<div className='right'></div> <div className='right' onClick={() => setExNum(!exNum)}>
<KeyboardControlKeyIcon className='icon' />
</div>
</NumberButton.CallButton> </NumberButton.CallButton>
<NumberButton.CallButtonModal visiblevalue={exNum}>
<NumberButton.CallButtonModalInset></NumberButton.CallButtonModalInset>
</NumberButton.CallButtonModal>
</NumberButton> </NumberButton>
</> </>
) : ( ) : (
......
...@@ -98,6 +98,7 @@ const NumberButton = styled.div` ...@@ -98,6 +98,7 @@ const NumberButton = styled.div`
font-size: 22px; font-size: 22px;
cursor: pointer; cursor: pointer;
height: 33px; height: 33px;
position: relative;
background-color: ${({ status = '', type = '' }) => background-color: ${({ status = '', type = '' }) =>
type === 'call_button' type === 'call_button'
? status === 'pending' ? status === 'pending'
...@@ -110,6 +111,8 @@ NumberButton.CallButton = styled.div` ...@@ -110,6 +111,8 @@ NumberButton.CallButton = styled.div`
height: 100%; height: 100%;
display: grid; display: grid;
grid-template-columns: repeat(1fr, 4); grid-template-columns: repeat(1fr, 4);
position: relative;
.left { .left {
grid-column: 1/4; grid-column: 1/4;
display: flex; display: flex;
...@@ -121,6 +124,62 @@ NumberButton.CallButton = styled.div` ...@@ -121,6 +124,62 @@ NumberButton.CallButton = styled.div`
border-top-right-radius: 20px; border-top-right-radius: 20px;
border-bottom-right-radius: 20px; border-bottom-right-radius: 20px;
background-color: #d9d9d9; background-color: #d9d9d9;
display: flex;
align-items: center;
justify-content: center;
.icon {
margin: 0;
padding: 0;
color: #000;
transition: 0.2s;
transform: ${({ exNum }) => (exNum ? 'rotate(177deg)' : 'rotate(0deg)')};
}
}
`;
NumberButton.CallButtonModal = styled.div`
position: absolute;
width: 130px;
height: 160px;
bottom: 40px;
transform: translate(-50%, 0);
left: 50%;
background-color: #c9d5d9;
border-radius: 20px;
padding: 15px;
transition: 0.1s;
${({ visiblevalue }) =>
visiblevalue
? {
opacity: '1',
transform: 'translate(-50%, 0)',
}
: {
opacity: '0',
transform: 'translate(-50%, 0)',
}}
`;
NumberButton.CallButtonModalInset = styled.div`
width: 100%;
height: 100%;
overflow-y: scroll;
::-webkit-scrollbar {
width: 5px;
}
/* Track */
::-webkit-scrollbar-track {
background: #fff0;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #abaaaa;
border-radius: 10px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
} }
`; `;
NumberButton.Icon = styled.div` NumberButton.Icon = styled.div`
......
...@@ -21,7 +21,7 @@ const ControlRenderBX = () => { ...@@ -21,7 +21,7 @@ const ControlRenderBX = () => {
}); });
} }
}, []); }, []);
console.log('window_alovoice_onsetdnd: ', window.alovoice_onsetdnd); console.log('window_alovoice_wsphone: ', window.alovoice_wsphone);
return ( return (
<div> <div>
{wsphonedata?.number && ( {wsphonedata?.number && (
......
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