From a56a2f55331f629d328e34df209a488210794634 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Mon, 26 Oct 2020 23:22:27 -0300 Subject: [PATCH] Changes --- components/auth/ForgotPassword.tsx | 16 ---------------- .../cart/CartSidebarView/CartSidebarView.tsx | 4 ++-- components/core/Footer/Footer.module.css | 9 +++++++++ components/core/Footer/Footer.tsx | 6 ++++-- 4 files changed, 15 insertions(+), 20 deletions(-) create mode 100644 components/core/Footer/Footer.module.css diff --git a/components/auth/ForgotPassword.tsx b/components/auth/ForgotPassword.tsx index f6e342742..261c171af 100644 --- a/components/auth/ForgotPassword.tsx +++ b/components/auth/ForgotPassword.tsx @@ -1,9 +1,7 @@ import { FC, useEffect, useState, useCallback } from 'react' import { validate } from 'email-validator' -import { Info } from '@components/icons' import { useUI } from '@components/ui/context' import { Logo, Button, Input } from '@components/ui' -import useSignup from '@bigcommerce/storefront-data-hooks/dist/use-signup' interface Props {} @@ -15,7 +13,6 @@ const ForgotPassword: FC = () => { const [dirty, setDirty] = useState(false) const [disabled, setDisabled] = useState(false) - const signup = useSignup() const { setModalView, closeModal } = useUI() const handleSignup = async () => { @@ -23,19 +20,6 @@ const ForgotPassword: FC = () => { setDirty(true) handleValidation() } - - // try { - // setLoading(true) - // setMessage('') - // await signup({ - // email, - // }) - // setLoading(false) - // closeModal() - // } catch ({ errors }) { - // setMessage(errors[0].message) - // setLoading(false) - // } } const handleValidation = useCallback(() => { diff --git a/components/cart/CartSidebarView/CartSidebarView.tsx b/components/cart/CartSidebarView/CartSidebarView.tsx index 8f019494b..0c8a2db3f 100644 --- a/components/cart/CartSidebarView/CartSidebarView.tsx +++ b/components/cart/CartSidebarView/CartSidebarView.tsx @@ -2,7 +2,7 @@ import { FC } from 'react' import cn from 'classnames' import { UserNav } from '@components/core' import { Button } from '@components/ui' -import { ArrowLeft, Bag, Cross, Check } from '@components/icons' +import { Bag, Cross, Check } from '@components/icons' import { useUI } from '@components/ui/context' import useCart from '@bigcommerce/storefront-data-hooks/dist/cart/use-cart' import usePrice from '@bigcommerce/storefront-data-hooks/dist/use-price' @@ -47,7 +47,7 @@ const CartSidebarView: FC = () => { aria-label="Close panel" className="hover:text-gray-500 transition ease-in-out duration-150" > - +
diff --git a/components/core/Footer/Footer.module.css b/components/core/Footer/Footer.module.css new file mode 100644 index 000000000..259318ecf --- /dev/null +++ b/components/core/Footer/Footer.module.css @@ -0,0 +1,9 @@ +.link { + & > svg { + @apply transform duration-75 ease-linear; + } + + &:hover > svg { + @apply scale-110; + } +} diff --git a/components/core/Footer/Footer.tsx b/components/core/Footer/Footer.tsx index 419de5ccc..b4472c287 100644 --- a/components/core/Footer/Footer.tsx +++ b/components/core/Footer/Footer.tsx @@ -7,7 +7,7 @@ import getSlug from '@utils/get-slug' import { Github } from '@components/icons' import { Logo, Container } from '@components/ui' import { I18nWidget } from '@components/core' - +import s from './Footer.module.css' interface Props { className?: string children?: any @@ -83,7 +83,9 @@ const Footer: FC = ({ className, pages }) => {
- + + +