diff --git a/components/cart/CartSidebarView/CartSidebarView.tsx b/components/cart/CartSidebarView/CartSidebarView.tsx index 53969dfc6..5dbde0e93 100644 --- a/components/cart/CartSidebarView/CartSidebarView.tsx +++ b/components/cart/CartSidebarView/CartSidebarView.tsx @@ -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 ( <> diff --git a/components/core/Avatar/Avatar.tsx b/components/core/Avatar/Avatar.tsx index c9cd9a029..f1d61a054 100644 --- a/components/core/Avatar/Avatar.tsx +++ b/components/core/Avatar/Avatar.tsx @@ -1,5 +1,5 @@ import cn from 'classnames' -import React, { FunctionComponent } from 'react' +import React, { FC } from 'react' import s from './Avatar.module.css' interface Props { @@ -7,7 +7,7 @@ interface Props { children?: any } -const Avatar: FunctionComponent = ({ className }) => { +const Avatar: FC = ({ className }) => { const rootClassName = cn(s.root, className) return (
diff --git a/components/core/Featurebar/Featurebar.tsx b/components/core/Featurebar/Featurebar.tsx index 714a9fceb..7fa882d8a 100644 --- a/components/core/Featurebar/Featurebar.tsx +++ b/components/core/Featurebar/Featurebar.tsx @@ -1,5 +1,5 @@ import cn from 'classnames' -import { FunctionComponent } from 'react' +import { FC } from 'react' import s from './Featurebar.module.css' interface Props { @@ -8,11 +8,7 @@ interface Props { description: string } -const Featurebar: FunctionComponent = ({ - title, - description, - className, -}) => { +const Featurebar: FC = ({ title, description, className }) => { const rootClassName = cn(s.root, className) return (
diff --git a/components/core/Footer/Footer.tsx b/components/core/Footer/Footer.tsx index 977cbd787..7b58acf84 100644 --- a/components/core/Footer/Footer.tsx +++ b/components/core/Footer/Footer.tsx @@ -1,5 +1,5 @@ import cn from 'classnames' -import React, { FunctionComponent } from 'react' +import React, { FC } from 'react' import s from './Footer.module.css' import { Container } from '@components/ui' @@ -8,7 +8,7 @@ interface Props { children?: any } -const Footer: FunctionComponent = ({ className }) => { +const Footer: FC = ({ className }) => { const rootClassName = cn(s.root, className) return (