fix icons (again...)

This commit is contained in:
Pavel Prichodko 2023-01-20 15:57:51 +01:00
parent 4b4b91c670
commit 28a24f6069
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import React from 'react' import React from 'react'
import { ChevronDown } from '@status-im/icons/20' import { ChevronRight } from '@status-im/icons/20'
import { Stack } from '@tamagui/core' import { Stack } from '@tamagui/core'
import { AnimatePresence } from 'tamagui' import { AnimatePresence } from 'tamagui'
@ -58,7 +58,7 @@ const Accordion = ({
}, },
]} ]}
> >
<ChevronDown color="$neutral-50" /> <ChevronRight color="$neutral-50" />
</Stack> </Stack>
<Paragraph <Paragraph
marginLeft={4} marginLeft={4}

View File

@ -1,3 +1,5 @@
import { cloneElement } from 'react'
import { Stack, styled, Text } from '@tamagui/core' import { Stack, styled, Text } from '@tamagui/core'
// import { Pressable } from 'react-native' // import { Pressable } from 'react-native'
@ -86,7 +88,7 @@ const IconButton = (props: Props) => {
return ( return (
<Base selected={selected} onPress={onPress} noBackground={noBackground}> <Base selected={selected} onPress={onPress} noBackground={noBackground}>
<Icon selected={selected} pointerEvents="none"> <Icon selected={selected} pointerEvents="none">
{icon} {cloneElement(icon, { color: '$neutral-50' })}
</Icon> </Icon>
</Base> </Base>
) )