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,10 +1,10 @@
import React, { FunctionComponent } from 'react'
import React, { FC } from 'react'
import { UserNav } from '@components/core'
import { Button } from '@components/ui'
import { Trash, Cross } from '@components/icon'
import { useUI } from '@components/ui/context'
const CartSidebarView: FunctionComponent = () => {
const CartSidebarView: FC = () => {
const { closeSidebar } = useUI()
return (
<>