mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 06:56:59 +00:00
some minor fixes to other providers
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
parent
381d4a987f
commit
c2fa21c7ba
@ -1,17 +1,2 @@
|
|||||||
import { MutationHook } from '@vercel/commerce/utils/types'
|
export * from '@vercel/commerce/customer/address/use-update-item'
|
||||||
import useUpdateItem, {
|
export { default } from '@vercel/commerce/customer/address/use-update-item'
|
||||||
UseUpdateItem,
|
|
||||||
} from '@vercel/commerce/customer/address/use-update-item'
|
|
||||||
|
|
||||||
export default useUpdateItem as UseUpdateItem<typeof handler>
|
|
||||||
|
|
||||||
export const handler: MutationHook<any> = {
|
|
||||||
fetchOptions: {
|
|
||||||
query: '',
|
|
||||||
},
|
|
||||||
async fetcher({ input, options, fetch }) {},
|
|
||||||
useHook:
|
|
||||||
({ fetch }) =>
|
|
||||||
() =>
|
|
||||||
async () => ({}),
|
|
||||||
}
|
|
||||||
|
@ -1,17 +1,2 @@
|
|||||||
import { MutationHook } from '@vercel/commerce/utils/types'
|
export * from '@vercel/commerce/checkout/use-submit-checkout'
|
||||||
import useSubmitCheckout, {
|
export { default } from '@vercel/commerce/checkout/use-submit-checkout'
|
||||||
UseSubmitCheckout,
|
|
||||||
} from '@vercel/commerce/checkout/use-submit-checkout'
|
|
||||||
|
|
||||||
export default useSubmitCheckout as UseSubmitCheckout<typeof handler>
|
|
||||||
|
|
||||||
export const handler: MutationHook<any> = {
|
|
||||||
fetchOptions: {
|
|
||||||
query: '',
|
|
||||||
},
|
|
||||||
async fetcher({ input, options, fetch }) {},
|
|
||||||
useHook:
|
|
||||||
({ fetch }) =>
|
|
||||||
() =>
|
|
||||||
async () => ({}),
|
|
||||||
}
|
|
||||||
|
@ -1,17 +1,2 @@
|
|||||||
import { MutationHook } from '@vercel/commerce/utils/types'
|
export * from '@vercel/commerce/customer/address/use-update-item'
|
||||||
import useUpdateItem, {
|
export { default } from '@vercel/commerce/customer/address/use-update-item'
|
||||||
UseUpdateItem,
|
|
||||||
} from '@vercel/commerce/customer/address/use-update-item'
|
|
||||||
|
|
||||||
export default useUpdateItem as UseUpdateItem<typeof handler>
|
|
||||||
|
|
||||||
export const handler: MutationHook<any> = {
|
|
||||||
fetchOptions: {
|
|
||||||
query: '',
|
|
||||||
},
|
|
||||||
async fetcher({ input, options, fetch }) {},
|
|
||||||
useHook:
|
|
||||||
({ fetch }) =>
|
|
||||||
() =>
|
|
||||||
async () => ({}),
|
|
||||||
}
|
|
||||||
|
@ -1 +1 @@
|
|||||||
COMMERCE_PROVIDER=@vercel/commerce-local
|
COMMERCE_PROVIDER=@vercel/commerce-local
|
@ -1,17 +1,2 @@
|
|||||||
import { MutationHook } from '@vercel/commerce/utils/types'
|
export * from '@vercel/commerce/checkout/use-submit-checkout'
|
||||||
import useSubmitCheckout, {
|
export { default } from '@vercel/commerce/checkout/use-submit-checkout'
|
||||||
UseSubmitCheckout,
|
|
||||||
} from '@vercel/commerce/checkout/use-submit-checkout'
|
|
||||||
|
|
||||||
export default useSubmitCheckout as UseSubmitCheckout<typeof handler>
|
|
||||||
|
|
||||||
export const handler: MutationHook<any> = {
|
|
||||||
fetchOptions: {
|
|
||||||
query: '',
|
|
||||||
},
|
|
||||||
async fetcher({ input, options, fetch }) {},
|
|
||||||
useHook:
|
|
||||||
({ fetch }) =>
|
|
||||||
() =>
|
|
||||||
async () => ({}),
|
|
||||||
}
|
|
||||||
|
@ -1,17 +1,2 @@
|
|||||||
import { MutationHook } from '@vercel/commerce/utils/types'
|
export * from '@vercel/commerce/customer/address/use-update-item'
|
||||||
import useUpdateItem, {
|
export { default } from '@vercel/commerce/customer/address/use-update-item'
|
||||||
UseUpdateItem,
|
|
||||||
} from '@vercel/commerce/customer/address/use-update-item'
|
|
||||||
|
|
||||||
export default useUpdateItem as UseUpdateItem<typeof handler>
|
|
||||||
|
|
||||||
export const handler: MutationHook<any> = {
|
|
||||||
fetchOptions: {
|
|
||||||
query: '',
|
|
||||||
},
|
|
||||||
async fetcher({ input, options, fetch }) {},
|
|
||||||
useHook:
|
|
||||||
({ fetch }) =>
|
|
||||||
() =>
|
|
||||||
async () => ({}),
|
|
||||||
}
|
|
||||||
|
@ -26,7 +26,6 @@ interface Form extends HTMLFormElement {
|
|||||||
const PaymentMethodView: FC = () => {
|
const PaymentMethodView: FC = () => {
|
||||||
const { setSidebarView } = useUI()
|
const { setSidebarView } = useUI()
|
||||||
const addCard = useAddCard()
|
const addCard = useAddCard()
|
||||||
const { cardFields } = useCheckoutContext()
|
|
||||||
|
|
||||||
async function handleSubmit(event: React.ChangeEvent<Form>) {
|
async function handleSubmit(event: React.ChangeEvent<Form>) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
@ -58,7 +57,6 @@ const PaymentMethodView: FC = () => {
|
|||||||
<input
|
<input
|
||||||
name="cardHolder"
|
name="cardHolder"
|
||||||
className={s.input}
|
className={s.input}
|
||||||
defaultValue={cardFields.cardHolder}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid gap-3 grid-flow-row grid-cols-12">
|
<div className="grid gap-3 grid-flow-row grid-cols-12">
|
||||||
@ -67,7 +65,6 @@ const PaymentMethodView: FC = () => {
|
|||||||
<input
|
<input
|
||||||
name="cardNumber"
|
name="cardNumber"
|
||||||
className={s.input}
|
className={s.input}
|
||||||
defaultValue={cardFields.cardNumber}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className={cn(s.fieldset, 'col-span-3')}>
|
<div className={cn(s.fieldset, 'col-span-3')}>
|
||||||
@ -76,7 +73,6 @@ const PaymentMethodView: FC = () => {
|
|||||||
name="cardExpireDate"
|
name="cardExpireDate"
|
||||||
className={s.input}
|
className={s.input}
|
||||||
placeholder="MM/YY"
|
placeholder="MM/YY"
|
||||||
defaultValue={cardFields.cardExpireDate}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className={cn(s.fieldset, 'col-span-2')}>
|
<div className={cn(s.fieldset, 'col-span-2')}>
|
||||||
@ -84,7 +80,6 @@ const PaymentMethodView: FC = () => {
|
|||||||
<input
|
<input
|
||||||
name="cardCvc"
|
name="cardCvc"
|
||||||
className={s.input}
|
className={s.input}
|
||||||
defaultValue={cardFields.cardCvc}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user