forked from crowetic/commerce
Changes
This commit is contained in:
parent
7f8ed4f0b7
commit
a56a2f5533
@ -1,9 +1,7 @@
|
|||||||
import { FC, useEffect, useState, useCallback } from 'react'
|
import { FC, useEffect, useState, useCallback } from 'react'
|
||||||
import { validate } from 'email-validator'
|
import { validate } from 'email-validator'
|
||||||
import { Info } from '@components/icons'
|
|
||||||
import { useUI } from '@components/ui/context'
|
import { useUI } from '@components/ui/context'
|
||||||
import { Logo, Button, Input } from '@components/ui'
|
import { Logo, Button, Input } from '@components/ui'
|
||||||
import useSignup from '@bigcommerce/storefront-data-hooks/dist/use-signup'
|
|
||||||
|
|
||||||
interface Props {}
|
interface Props {}
|
||||||
|
|
||||||
@ -15,7 +13,6 @@ const ForgotPassword: FC<Props> = () => {
|
|||||||
const [dirty, setDirty] = useState(false)
|
const [dirty, setDirty] = useState(false)
|
||||||
const [disabled, setDisabled] = useState(false)
|
const [disabled, setDisabled] = useState(false)
|
||||||
|
|
||||||
const signup = useSignup()
|
|
||||||
const { setModalView, closeModal } = useUI()
|
const { setModalView, closeModal } = useUI()
|
||||||
|
|
||||||
const handleSignup = async () => {
|
const handleSignup = async () => {
|
||||||
@ -23,19 +20,6 @@ const ForgotPassword: FC<Props> = () => {
|
|||||||
setDirty(true)
|
setDirty(true)
|
||||||
handleValidation()
|
handleValidation()
|
||||||
}
|
}
|
||||||
|
|
||||||
// try {
|
|
||||||
// setLoading(true)
|
|
||||||
// setMessage('')
|
|
||||||
// await signup({
|
|
||||||
// email,
|
|
||||||
// })
|
|
||||||
// setLoading(false)
|
|
||||||
// closeModal()
|
|
||||||
// } catch ({ errors }) {
|
|
||||||
// setMessage(errors[0].message)
|
|
||||||
// setLoading(false)
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleValidation = useCallback(() => {
|
const handleValidation = useCallback(() => {
|
||||||
|
@ -2,7 +2,7 @@ import { FC } from 'react'
|
|||||||
import cn from 'classnames'
|
import cn from 'classnames'
|
||||||
import { UserNav } from '@components/core'
|
import { UserNav } from '@components/core'
|
||||||
import { Button } from '@components/ui'
|
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 { useUI } from '@components/ui/context'
|
||||||
import useCart from '@bigcommerce/storefront-data-hooks/dist/cart/use-cart'
|
import useCart from '@bigcommerce/storefront-data-hooks/dist/cart/use-cart'
|
||||||
import usePrice from '@bigcommerce/storefront-data-hooks/dist/use-price'
|
import usePrice from '@bigcommerce/storefront-data-hooks/dist/use-price'
|
||||||
@ -47,7 +47,7 @@ const CartSidebarView: FC = () => {
|
|||||||
aria-label="Close panel"
|
aria-label="Close panel"
|
||||||
className="hover:text-gray-500 transition ease-in-out duration-150"
|
className="hover:text-gray-500 transition ease-in-out duration-150"
|
||||||
>
|
>
|
||||||
<ArrowLeft className="h-6 w-6" />
|
<Cross className="h-6 w-6" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
|
9
components/core/Footer/Footer.module.css
Normal file
9
components/core/Footer/Footer.module.css
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
.link {
|
||||||
|
& > svg {
|
||||||
|
@apply transform duration-75 ease-linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover > svg {
|
||||||
|
@apply scale-110;
|
||||||
|
}
|
||||||
|
}
|
@ -7,7 +7,7 @@ import getSlug from '@utils/get-slug'
|
|||||||
import { Github } from '@components/icons'
|
import { Github } from '@components/icons'
|
||||||
import { Logo, Container } from '@components/ui'
|
import { Logo, Container } from '@components/ui'
|
||||||
import { I18nWidget } from '@components/core'
|
import { I18nWidget } from '@components/core'
|
||||||
|
import s from './Footer.module.css'
|
||||||
interface Props {
|
interface Props {
|
||||||
className?: string
|
className?: string
|
||||||
children?: any
|
children?: any
|
||||||
@ -83,7 +83,9 @@ const Footer: FC<Props> = ({ className, pages }) => {
|
|||||||
</div>
|
</div>
|
||||||
<div className="col-span-1 lg:col-span-6 flex items-start lg:justify-end text-primary">
|
<div className="col-span-1 lg:col-span-6 flex items-start lg:justify-end text-primary">
|
||||||
<div className="flex space-x-6 items-center h-10">
|
<div className="flex space-x-6 items-center h-10">
|
||||||
|
<a href="https://github.com/vercel/commerce" className={s.link}>
|
||||||
<Github />
|
<Github />
|
||||||
|
</a>
|
||||||
<I18nWidget />
|
<I18nWidget />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user