Commit 0f5bcb8f authored by Muhammadali's avatar Muhammadali

update verison: 0.9.1

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