refactor: convert Icon jsx component to tsx
This commit is contained in:
parent
2c632552b3
commit
ce712c621b
|
@ -1,7 +0,0 @@
|
||||||
import { Image } from 'tamagui'
|
|
||||||
|
|
||||||
const Icon = ({ source, width = 16, height = 16, ...props }) => {
|
|
||||||
return <Image {...props} source={{ uri: source }} width={width} height={height} />
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Icon
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
import { Image } from 'tamagui'
|
||||||
|
|
||||||
|
type IconProps = {
|
||||||
|
source: string
|
||||||
|
width?: number
|
||||||
|
height?: number
|
||||||
|
}
|
||||||
|
|
||||||
|
const Icon = ({ source, width = 16, height = 16, ...props }: IconProps) => {
|
||||||
|
return <Image {...props} source={{ uri: source }} width={width} height={height} />
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Icon
|
Loading…
Reference in New Issue