use FC instead of FunctionalComponent

This commit is contained in:
Luis Alvarez
2020-10-01 21:30:52 -05:00
parent cf7c85e3ba
commit 44a41eb3e1
17 changed files with 34 additions and 52 deletions

View File

@@ -1,5 +1,5 @@
import cn from 'classnames'
import React, { FunctionComponent } from 'react'
import React, { FC } from 'react'
import s from './UserNav.module.css'
import { Avatar } from '@components/core'
import { Heart, Bag } from '@components/icon'
@@ -9,7 +9,7 @@ interface Props {
className?: string
}
const UserNav: FunctionComponent<Props> = ({ className }) => {
const UserNav: FC<Props> = ({ className }) => {
const rootClassName = cn(s.root, className)
const { openSidebar } = useUI()