From 6c4af99b3f0832ab505ec5d3ca15923565ff8b7f Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Wed, 27 Sep 2023 11:33:18 +0300 Subject: [PATCH] pass value --- src/pages/Dashboard/RightSideBar/SearchInput.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/Dashboard/RightSideBar/SearchInput.tsx b/src/pages/Dashboard/RightSideBar/SearchInput.tsx index d8edab92..eecd2d27 100644 --- a/src/pages/Dashboard/RightSideBar/SearchInput.tsx +++ b/src/pages/Dashboard/RightSideBar/SearchInput.tsx @@ -1,9 +1,11 @@ import { Input } from "@status-im/components" import { SearchIcon } from "@status-im/icons" -import { useState } from "react" -const InputSearch = () => { - const [value, setValue] = useState('') +type InputSearchProps = { + value: string + setValue: (value: string) => void +} +const InputSearch = ({ value, setValue }: InputSearchProps) => { return ( <>