mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-20 16:30:34 +00:00
fix: remove not used props from icon
This commit is contained in:
parent
0947232fa1
commit
822f4cc805
@ -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) => {
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user