Commit 0f5bcb8f authored by Muhammadali's avatar Muhammadali

update verison: 0.9.1

parent d759d961
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "0.9.0", "version": "0.9.1",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -8,7 +8,7 @@ const DropDown = ({ reasons, reason, selectFunc }) => { ...@@ -8,7 +8,7 @@ const DropDown = ({ reasons, reason, selectFunc }) => {
return ( return (
<DropDownStyle <DropDownStyle
visible={visible} visibleValue={visible}
onClick={() => setVisible(!visible)} onClick={() => setVisible(!visible)}
className='nocopy'> className='nocopy'>
<DropDownStyle.Text>{reason}</DropDownStyle.Text> <DropDownStyle.Text>{reason}</DropDownStyle.Text>
...@@ -20,7 +20,7 @@ const DropDown = ({ reasons, reason, selectFunc }) => { ...@@ -20,7 +20,7 @@ const DropDown = ({ reasons, reason, selectFunc }) => {
))} ))}
</DropDownStyle.DropDown> </DropDownStyle.DropDown>
<DropDownStyle.Window <DropDownStyle.Window
visible={visible} visibleValue={visible}
onClick={() => setVisible(false)} onClick={() => setVisible(false)}
/> />
</DropDownStyle> </DropDownStyle>
......
...@@ -14,7 +14,7 @@ DropDownStyle.Text = styled.div` ...@@ -14,7 +14,7 @@ DropDownStyle.Text = styled.div`
font-size: 22px; font-size: 22px;
`; `;
DropDownStyle.Window = styled.div` DropDownStyle.Window = styled.div`
display: ${({ visible }) => (visible ? 'block' : 'none')}; display: ${({ visibleValue }) => (visibleValue ? 'block' : 'none')};
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
...@@ -43,8 +43,8 @@ DropDownStyle.DropDown = styled.div` ...@@ -43,8 +43,8 @@ DropDownStyle.DropDown = styled.div`
background-color: #e9e9e9; background-color: #e9e9e9;
} }
} }
${({ visible }) => ${({ visibleValue }) =>
visible visibleValue
? { ? {
opacity: '1', opacity: '1',
transform: 'scale(1) translate(-50%, 0)', transform: 'scale(1) translate(-50%, 0)',
......
...@@ -158,11 +158,6 @@ const ModalPhoneNumpad = ({ ...@@ -158,11 +158,6 @@ const ModalPhoneNumpad = ({
{!modalState.bool ? ( {!modalState.bool ? (
<> <>
<NumberButton style={{ gridColumn: '1/3' }} className='nocopy'> <NumberButton style={{ gridColumn: '1/3' }} className='nocopy'>
{/* <DropDownTailwind
selectFunc={onSetDnd}
reasons={reasons}
reason={reason}
/> */}
<DropDown <DropDown
sele ctFunc={onSetDnd} sele ctFunc={onSetDnd}
reasons={reasons} reasons={reasons}
......
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