App Provider
The AppProvider
component enables sharing global settings throughout the hierarchy of your application.
Import the AppProvider
from @shopify/discount-app-components
and pass the shop's locale and timezone. @shopify/discount-app-components
contains Polaris and AppBridge functionality and must be wrapped in the Provider
from @shopify/app-bridge-react
and the AppProvider
from @shopify/polaris
.
Name | Type | Description | Required |
---|---|---|---|
locale | string |
The locale of the shop. | Yes |
ianaTimezone | string |
The shop's time zone as defined by the IANA. | Yes |