mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 19:21:23 +00:00
Upgrade checkout behavior in line with core NextJS Commerce changes
This commit is contained in:
16
framework/spree/customer/card/use-add-item.tsx
Normal file
16
framework/spree/customer/card/use-add-item.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import useAddItem from '@commerce/customer/address/use-add-item'
|
||||
import type { UseAddItem } from '@commerce/customer/address/use-add-item'
|
||||
import type { MutationHook } from '@commerce/utils/types'
|
||||
|
||||
export default useAddItem as UseAddItem<typeof handler>
|
||||
|
||||
export const handler: MutationHook<any> = {
|
||||
fetchOptions: {
|
||||
query: '',
|
||||
},
|
||||
async fetcher({ input, options, fetch }) {},
|
||||
useHook:
|
||||
({ fetch }) =>
|
||||
() =>
|
||||
async () => ({}),
|
||||
}
|
Reference in New Issue
Block a user