Commit 30b32bf8 authored by Muhammadali's avatar Muhammadali

update-2.2.9

parent a99f083f
{
"name": "boxdialer",
"version": "2.2.8",
"version": "2.2.9",
"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,7 +16,8 @@ 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)}
{/* {translator.translate(value)} */}
{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