Commit 219c9a38 authored by Muhammadali's avatar Muhammadali

update version: 0.9.5

parent e496c620
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "0.9.4", "version": "0.9.5",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -7,10 +7,7 @@ const DropDown = ({ reasons, reason, selectFunc }) => { ...@@ -7,10 +7,7 @@ const DropDown = ({ reasons, reason, selectFunc }) => {
const [visible, setVisible] = useState(false); const [visible, setVisible] = useState(false);
return ( return (
<DropDownStyle <DropDownStyle onClick={() => setVisible(!visible)} className='nocopy'>
visibleValue={visible}
onClick={() => setVisible(!visible)}
className='nocopy'>
<DropDownStyle.Text>{reason}</DropDownStyle.Text> <DropDownStyle.Text>{reason}</DropDownStyle.Text>
<DropDownStyle.DropDown visibleValue={visible} className={'nocopy'}> <DropDownStyle.DropDown visibleValue={visible} className={'nocopy'}>
{reasons.map((value, index) => ( {reasons.map((value, index) => (
......
...@@ -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: ${({ visibleValue }) => (visibleValue ? 'block' : 'none')}; */ display: ${({ visibleValue }) => (visibleValue ? 'block' : 'none')};
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
...@@ -43,7 +43,7 @@ DropDownStyle.DropDown = styled.div` ...@@ -43,7 +43,7 @@ DropDownStyle.DropDown = styled.div`
background-color: #e9e9e9; background-color: #e9e9e9;
} }
} }
/* ${({ visibleValue }) => ${({ visibleValue }) =>
visibleValue visibleValue
? { ? {
opacity: '1', opacity: '1',
...@@ -52,7 +52,7 @@ DropDownStyle.DropDown = styled.div` ...@@ -52,7 +52,7 @@ DropDownStyle.DropDown = styled.div`
: { : {
opacity: '0', opacity: '0',
transform: 'scale(0) translate(-50%, 0)', transform: 'scale(0) translate(-50%, 0)',
}} */ }}
`; `;
export default DropDownStyle; export default DropDownStyle;
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