Commit 4f330597 authored by Muhammadali's avatar Muhammadali

update-2.3.0

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