Fixed prop types

This commit is contained in:
z0ccc 2022-07-11 17:02:30 -04:00
parent 4cf0fb3de7
commit b59ee27438

View file

@ -1,6 +1,10 @@
import React, { useState, useEffect } from 'react' import React, { useState, useEffect } from 'react'
const Icon = ({ icon }: any) => { interface IconProps {
icon: React.ReactNode
}
const Icon = ({ icon }: IconProps) => {
return ( return (
<div <div
sx={{ sx={{