feat(breadcrumb-element): add pointer and handler
This commit is contained in:
parent
6667c72e97
commit
82e97f4840
|
@ -1,6 +1,6 @@
|
|||
import { Text } from '@status-im/components'
|
||||
import { ChevronRightIcon } from '@status-im/icons'
|
||||
import { XStack } from 'tamagui'
|
||||
import { Stack, XStack } from 'tamagui'
|
||||
|
||||
type BreadcrumbElementProps = {
|
||||
element: string
|
||||
|
@ -11,11 +11,15 @@ const BreadcrumbElement = ({
|
|||
element,
|
||||
isLastElement,
|
||||
}: BreadcrumbElementProps) => {
|
||||
const onClickBreadcrumbElement = () => {}
|
||||
|
||||
return (
|
||||
<XStack space={'$2'} alignItems="center">
|
||||
<Stack onPress={onClickBreadcrumbElement} style={{ cursor: 'pointer' }}>
|
||||
<Text size={15} color={isLastElement ? '' : '#647084'}>
|
||||
{element}
|
||||
</Text>
|
||||
</Stack>
|
||||
{isLastElement === false && (
|
||||
<ChevronRightIcon size={20} color="#647084" />
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue