Create right sidebar search input

This commit is contained in:
Hristo Nedelkov 2023-09-26 16:28:44 +03:00
parent c0cabdc45e
commit fb397e91eb
2 changed files with 27 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import { Avatar, Tabs, Text } from '@status-im/components' import { Avatar, Tabs, Text } from '@status-im/components'
import { XStack, YStack } from 'tamagui' import { XStack, YStack } from 'tamagui'
import ValidatorListItem from './ValidatorListItem' import ValidatorListItem from './ValidatorListItem'
import InputSearch from './SearchInput'
// import { NodeIcon } from '@status-im/icons' // import { NodeIcon } from '@status-im/icons'
const RightSidebar = () => { const RightSidebar = () => {
@ -34,6 +35,7 @@ const RightSidebar = () => {
</Tabs.Trigger> </Tabs.Trigger>
</Tabs.List> </Tabs.List>
<Tabs.Content value="active"> <Tabs.Content value="active">
<InputSearch />
<YStack> <YStack>
<ValidatorListItem /> <ValidatorListItem />
<ValidatorListItem /> <ValidatorListItem />

View File

@ -0,0 +1,25 @@
import { Input } from "@status-im/components"
import { SearchIcon } from "@status-im/icons"
import { useState } from "react"
const InputSearch = () => {
const [value, setValue] = useState('')
return (
<>
<Input
placeholder="Search Validators"
value={value}
onChangeText={setValue}
icon={<SearchIcon size={20} />}
onClear={() => setValue('')}
size={40}
// button={{
// label: 'Confirm',
// onPress: () => alert('Confirmed!'),
// }}
/>
</>
)
}
export default InputSearch