Commit 714d8abf authored by Muhammadali's avatar Muhammadali

update-

parent 137be97c
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.4.4", "version": "2.4.6",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -6,7 +6,6 @@ import { Text, useTranslator } from '@eo-locale/react'; ...@@ -6,7 +6,6 @@ import { Text, useTranslator } from '@eo-locale/react';
const DropDown = ({ reasons, reason, selectFunc }) => { const DropDown = ({ reasons, reason, selectFunc }) => {
const translator = useTranslator(); const translator = useTranslator();
const [visible, setVisible] = useState(0); const [visible, setVisible] = useState(0);
console.log('translator_translate', translator.translate('free'));
return ( return (
<DropDownStyle <DropDownStyle
onClick={() => setVisible(visible ? 0 : 1)} onClick={() => setVisible(visible ? 0 : 1)}
...@@ -17,7 +16,11 @@ const DropDown = ({ reasons, reason, selectFunc }) => { ...@@ -17,7 +16,11 @@ const DropDown = ({ reasons, reason, selectFunc }) => {
</DropDownStyle.Text> </DropDownStyle.Text>
<DropDownStyle.DropDown visiblevalue={visible} className={'nocopy'}> <DropDownStyle.DropDown visiblevalue={visible} className={'nocopy'}>
{reasons.map((value, index) => ( {reasons.map((value, index) => (
<div className='select' key={index} onClick={() => selectFunc(value)}> <div
className='select'
key={index}
onClick={() => selectFunc(value)}
style={{ textOverflow: 'ellipsis' }}>
{translator.translate(value.toUpperCase())} {translator.translate(value.toUpperCase())}
{/* <Text id={value.toUpperCase()} /> */} {/* <Text id={value.toUpperCase()} /> */}
</div> </div>
......
...@@ -12,6 +12,7 @@ const DropDownStyle = styled.div` ...@@ -12,6 +12,7 @@ const DropDownStyle = styled.div`
`; `;
DropDownStyle.Text = styled.div` DropDownStyle.Text = styled.div`
font-size: 22px; font-size: 22px;
text-overflow: ellipsis;
`; `;
DropDownStyle.Window = styled.div` DropDownStyle.Window = styled.div`
display: ${({ visiblevalue }) => (visiblevalue == 1 ? 'block' : 'none')}; display: ${({ visiblevalue }) => (visiblevalue == 1 ? 'block' : 'none')};
......
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