mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Context Performance
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { FC, useEffect, useState, useCallback } from 'react'
|
||||
import { validate } from 'email-validator'
|
||||
import { Info } from'@components/icons'
|
||||
import { Info } from '@components/icons'
|
||||
import { useUI } from '@components/ui/context'
|
||||
import { Logo, Button, Input } from '@components/ui'
|
||||
import useSignup from '@lib/bigcommerce/use-signup'
|
||||
@@ -59,7 +59,7 @@ const ForgotPassword: FC<Props> = () => {
|
||||
<div className="text-red border border-red p-3">{message}</div>
|
||||
)}
|
||||
|
||||
<Input placeholder="Email" onChange={setEmail} />
|
||||
<Input placeholder="Email" onChange={setEmail} type="email" />
|
||||
<div className="pt-2 w-full flex flex-col">
|
||||
<Button
|
||||
variant="slim"
|
||||
|
@@ -70,8 +70,8 @@ const LoginView: FC<Props> = () => {
|
||||
</a>
|
||||
</div>
|
||||
)}
|
||||
<Input placeholder="Email" onChange={setEmail} />
|
||||
<Input placeholder="Password" onChange={setPassword} />
|
||||
<Input placeholder="Email" onChange={setEmail} type="email" />
|
||||
<Input placeholder="Password" onChange={setPassword} type="password" />
|
||||
|
||||
<Button
|
||||
variant="slim"
|
||||
|
@@ -69,8 +69,8 @@ const SignUpView: FC<Props> = () => {
|
||||
)}
|
||||
<Input placeholder="First Name" onChange={setFirstName} />
|
||||
<Input placeholder="Last Name" onChange={setLastName} />
|
||||
<Input placeholder="Email" onChange={setEmail} />
|
||||
<Input placeholder="Password" onChange={setPassword} />
|
||||
<Input placeholder="Email" onChange={setEmail} type="email" />
|
||||
<Input placeholder="Password" onChange={setPassword} type="password" />
|
||||
<span className="text-accents-8">
|
||||
<span className="inline-block align-middle ">
|
||||
<Info width="15" height="15" />
|
||||
|
Reference in New Issue
Block a user