fix: remove not used props from icon

This commit is contained in:
RadoslavDimchev 2023-08-08 13:59:35 +03:00
parent 0947232fa1
commit 822f4cc805
3 changed files with 2 additions and 4 deletions

View File

@ -4,8 +4,6 @@ export type IconProps = {
source: string
width?: number
height?: number
style?: unknown
className?: string
}
const Icon = ({ source, width = 16, height = 16, ...props }: IconProps) => {

View File

@ -14,7 +14,7 @@ const IconText = ({ icon, children, ...props }: IconTextProps) => {
}}
space={'$2'}
>
<Icon source={icon} width={16} height={16} />
<Icon source={icon} />
<Paragraph {...props} color={'#000000'}>
{children}
</Paragraph>

View File

@ -20,7 +20,7 @@ const InformationBox = ({ icon, textElements }: InformationBoxProps) => {
}}
space={'$2'}
>
<Icon source={icon} width={12} height={12} style={{ marginTop: '6px' }} />
<Icon source={icon} width={12} height={12} />
<FormattedText textElements={textElements} color={'#647084'} fontSize={'$3'} />
</XStack>
)