4
0
forked from crowetic/commerce

Make locale required

This commit is contained in:
Luis Alvarez 2020-10-04 19:46:43 -05:00
parent 6fa1204e0b
commit 8a7798d4d6
2 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,7 @@ const CoreLayout: FC<Props> = ({ className, children }) => {
}
const Layout: FC<Props> = (props) => (
<CommerceProvider>
<CommerceProvider locale="en-us">
<CartProvider>
<UIProvider>
<CoreLayout {...props} />

View File

@ -45,6 +45,7 @@ export type BigcommerceConfig = Partial<CommerceConfig>
export type BigcommerceProps = {
children?: ReactNode
locale: string
} & BigcommerceConfig
export function CommerceProvider({ children, ...config }: BigcommerceProps) {