mirror of
https://github.com/vercel/commerce.git
synced 2025-05-16 14:36: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'
|
||||
import useUpdateItem, {
|
||||
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 () => ({}),
|
||||
}
|
||||
export * from '@vercel/commerce/customer/address/use-update-item'
|
||||
export { default } from '@vercel/commerce/customer/address/use-update-item'
|
||||
|
@ -1,17 +1,2 @@
|
||||
import { MutationHook } from '@vercel/commerce/utils/types'
|
||||
import useSubmitCheckout, {
|
||||
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 () => ({}),
|
||||
}
|
||||
export * from '@vercel/commerce/checkout/use-submit-checkout'
|
||||
export { default } from '@vercel/commerce/checkout/use-submit-checkout'
|
||||
|
@ -1,17 +1,2 @@
|
||||
import { MutationHook } from '@vercel/commerce/utils/types'
|
||||
import useUpdateItem, {
|
||||
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 () => ({}),
|
||||
}
|
||||
export * from '@vercel/commerce/customer/address/use-update-item'
|
||||
export { default } from '@vercel/commerce/customer/address/use-update-item'
|
||||
|
@ -1 +1 @@
|
||||
COMMERCE_PROVIDER=@vercel/commerce-local
|
||||
COMMERCE_PROVIDER=@vercel/commerce-local
|
@ -1,17 +1,2 @@
|
||||
import { MutationHook } from '@vercel/commerce/utils/types'
|
||||
import useSubmitCheckout, {
|
||||
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 () => ({}),
|
||||
}
|
||||
export * from '@vercel/commerce/checkout/use-submit-checkout'
|
||||
export { default } from '@vercel/commerce/checkout/use-submit-checkout'
|
||||
|
@ -1,17 +1,2 @@
|
||||
import { MutationHook } from '@vercel/commerce/utils/types'
|
||||
import useUpdateItem, {
|
||||
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 () => ({}),
|
||||
}
|
||||
export * from '@vercel/commerce/customer/address/use-update-item'
|
||||
export { default } from '@vercel/commerce/customer/address/use-update-item'
|
||||
|
@ -26,7 +26,6 @@ interface Form extends HTMLFormElement {
|
||||
const PaymentMethodView: FC = () => {
|
||||
const { setSidebarView } = useUI()
|
||||
const addCard = useAddCard()
|
||||
const { cardFields } = useCheckoutContext()
|
||||
|
||||
async function handleSubmit(event: React.ChangeEvent<Form>) {
|
||||
event.preventDefault()
|
||||
@ -58,7 +57,6 @@ const PaymentMethodView: FC = () => {
|
||||
<input
|
||||
name="cardHolder"
|
||||
className={s.input}
|
||||
defaultValue={cardFields.cardHolder}
|
||||
/>
|
||||
</div>
|
||||
<div className="grid gap-3 grid-flow-row grid-cols-12">
|
||||
@ -67,7 +65,6 @@ const PaymentMethodView: FC = () => {
|
||||
<input
|
||||
name="cardNumber"
|
||||
className={s.input}
|
||||
defaultValue={cardFields.cardNumber}
|
||||
/>
|
||||
</div>
|
||||
<div className={cn(s.fieldset, 'col-span-3')}>
|
||||
@ -76,7 +73,6 @@ const PaymentMethodView: FC = () => {
|
||||
name="cardExpireDate"
|
||||
className={s.input}
|
||||
placeholder="MM/YY"
|
||||
defaultValue={cardFields.cardExpireDate}
|
||||
/>
|
||||
</div>
|
||||
<div className={cn(s.fieldset, 'col-span-2')}>
|
||||
@ -84,7 +80,6 @@ const PaymentMethodView: FC = () => {
|
||||
<input
|
||||
name="cardCvc"
|
||||
className={s.input}
|
||||
defaultValue={cardFields.cardCvc}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user