Create right sidebar search input
This commit is contained in:
parent
c0cabdc45e
commit
fb397e91eb
|
@ -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 />
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue