Commit c575a298 authored by Muhammadali's avatar Muhammadali

update-

parent d1b5a0dc
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.7.1", "version": "2.7.2",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -3,7 +3,12 @@ ...@@ -3,7 +3,12 @@
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import Block, { Input, ModalDropDown } from './style.js'; import Block, { Input, ModalDropDown } from './style.js';
const CallHistoryInputDropdown = ({ inputValue, call_history, selectFunc }) => { const CallHistoryInputDropdown = ({
inputValue,
call_history,
selectFunc,
numberSelectHistory,
}) => {
const [modal, setModal] = useState(false); const [modal, setModal] = useState(false);
useEffect(() => { useEffect(() => {
...@@ -17,9 +22,7 @@ const CallHistoryInputDropdown = ({ inputValue, call_history, selectFunc }) => { ...@@ -17,9 +22,7 @@ const CallHistoryInputDropdown = ({ inputValue, call_history, selectFunc }) => {
setModal(false); setModal(false);
}; };
useEffect(() => { useEffect(() => {}, [inputValue]);
}, [inputValue]);
return ( return (
<Block> <Block>
...@@ -36,6 +39,7 @@ const CallHistoryInputDropdown = ({ inputValue, call_history, selectFunc }) => { ...@@ -36,6 +39,7 @@ const CallHistoryInputDropdown = ({ inputValue, call_history, selectFunc }) => {
<ModalDropDown.Inset id='data'> <ModalDropDown.Inset id='data'>
{call_history.reverse().map((value, index) => ( {call_history.reverse().map((value, index) => (
<p <p
style={{ border: '1px solid red' }}
className='item' className='item'
key={index} key={index}
onClick={() => selectFuncInset(value)}> onClick={() => selectFuncInset(value)}>
......
...@@ -211,6 +211,7 @@ const ModalPhoneNumpad = ({ ...@@ -211,6 +211,7 @@ const ModalPhoneNumpad = ({
call_history={call_history} call_history={call_history}
inputValue={inputValue} inputValue={inputValue}
selectFunc={selectFunc} selectFunc={selectFunc}
numberSelectHistory={numberSelectHistory}
/> />
{inputValue.length ? ( {inputValue.length ? (
<Input.BackSpaceIcon <Input.BackSpaceIcon
......
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