Fixed prop types
This commit is contained in:
parent
4cf0fb3de7
commit
b59ee27438
1 changed files with 5 additions and 1 deletions
|
|
@ -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={{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue