forked from crowetic/commerce
use FC instead of FunctionalComponent
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import cn from 'classnames'
|
||||
import { FunctionComponent } from 'react'
|
||||
import { FC } from 'react'
|
||||
import s from './Featurebar.module.css'
|
||||
|
||||
interface Props {
|
||||
@@ -7,7 +7,7 @@ interface Props {
|
||||
children?: any
|
||||
}
|
||||
|
||||
const Featurebar: FunctionComponent<Props> = ({ children, className }) => {
|
||||
const Featurebar: FC<Props> = ({ children, className }) => {
|
||||
const rootClassName = cn(s.root, className)
|
||||
return <div className={rootClassName}>{children}</div>
|
||||
}
|
||||
|
Reference in New Issue
Block a user