Commit 714d8abf authored by Muhammadali's avatar Muhammadali

update-

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