Skip to content

Commit

Permalink
feat: removed payment gateway register as it's no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
field123 committed Jan 12, 2024
1 parent 9968fc6 commit fa5e32d
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 154 deletions.
1 change: 0 additions & 1 deletion packages/react-shopper-hooks/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export * from "./cart"
export * from "./event"
export * from "./shared"
export * from "./payment-gateway-register"
export * from "./store"
export * from "./product"
export * from "./account"
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

21 changes: 9 additions & 12 deletions packages/react-shopper-hooks/src/store/store-provider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { StoreProviderProps } from "./types/store-context-types"
import { PGRProvider } from "../payment-gateway-register/payment-gateway-provider"
import { emitter } from "../event/event-context"
import { CartProvider } from "../cart"
import React, { createContext } from "react"
Expand All @@ -23,17 +22,15 @@ export const StoreProvider = ({

return (
<StoreProviderContext.Provider value={{ client, nav: initialState?.nav }}>
<PGRProvider>
<CartProvider
cartId={cartId}
initialState={{
cart: initialState?.cart,
}}
emit={emitter}
>
{children}
</CartProvider>
</PGRProvider>
<CartProvider
cartId={cartId}
initialState={{
cart: initialState?.cart,
}}
emit={emitter}
>
{children}
</CartProvider>
</StoreProviderContext.Provider>
)
}

0 comments on commit fa5e32d

Please sign in to comment.