Upgrade checkout behavior in line with core NextJS Commerce changes

This commit is contained in:
tniezg
2021-09-24 14:25:02 +02:00
parent cab6b04a57
commit 73c5e9df10
9 changed files with 61 additions and 7 deletions

View 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 () => ({}),
}