Commit 4f330597 authored by Muhammadali's avatar Muhammadali

update-2.3.0

parent 30b32bf8
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.2.9", "version": "2.3.0",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
import React, { useState } from 'react'; import React, { useState } from 'react';
import DropDownStyle from './style'; import DropDownStyle from './style';
// import { useTranslator } from '@eo-locale/react'; import { 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);
return ( return (
...@@ -16,8 +16,7 @@ const DropDown = ({ reasons, reason, selectFunc }) => { ...@@ -16,8 +16,7 @@ const DropDown = ({ reasons, reason, selectFunc }) => {
<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)}>
{/* {translator.translate(value)} */} {translator.translate(value)}
{value}
</div> </div>
))} ))}
</DropDownStyle.DropDown> </DropDownStyle.DropDown>
......
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