Commit 90558f25 authored by Muhammadali's avatar Muhammadali

update-

parent c1eae270
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.8.8", "version": "4.8.9",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -285,16 +285,16 @@ const ModalPhoneNumpad = ({ ...@@ -285,16 +285,16 @@ const ModalPhoneNumpad = ({
</NumberButton.CallButton> </NumberButton.CallButton>
<NumberButton.CallButtonModal visiblevalue={exNum}> <NumberButton.CallButtonModal visiblevalue={exNum}>
<NumberButton.CallButtonModalInset> <NumberButton.CallButtonModalInset>
{extnums?.map((item, index) => ( {extnums?.map(({ number, title }, index) => (
<p <p
key={index} key={index}
className='num_item' className='num_item'
onClick={() => { onClick={() => {
boxDialer.extnum = item; boxDialer.extnum = number;
setExNum(false); setExNum(false);
callButton(); callButton();
}}> }}>
{item} {title}({number})
</p> </p>
))} ))}
</NumberButton.CallButtonModalInset> </NumberButton.CallButtonModalInset>
......
...@@ -222,17 +222,17 @@ NumberButton.CallButtonModal = styled.div` ...@@ -222,17 +222,17 @@ NumberButton.CallButtonModal = styled.div`
NumberButton.CallButtonModalInset = styled.div` NumberButton.CallButtonModalInset = styled.div`
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow-y: scroll;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.num_item { .num_item {
text-wrap: nowrap;
color: #000; color: #000;
transition: 0.2s; transition: 0.2s;
/* padding: 7px 4px; */ /* padding: 7px 4px; */
padding: 5px 10px; padding: 5px 10px;
font-size: 20px; font-size: 14px;
margin: 2px 0; margin: 2px 0;
border-radius: 10px; border-radius: 10px;
:hover { :hover {
......
...@@ -18,7 +18,16 @@ const ControlRenderBX = () => { ...@@ -18,7 +18,16 @@ const ControlRenderBX = () => {
reason: 'free', reason: 'free',
variant: 'bxmini', variant: 'bxmini',
position: 'bottomRight', position: 'bottomRight',
extnums: ['994412860', '770412860'], extnums: [
{
title: 'text-1',
number: '994412860',
},
{
title: 'test-2',
number: '770412860'
},
],
}); });
} }
}, []); }, []);
......
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