Skip to content

Commit

Permalink
fix: update Polaris style guide links (#62)
Browse files Browse the repository at this point in the history
* fix: update Polaris style guide links

* chore: add changeset
  • Loading branch information
laurkim authored Mar 14, 2023
1 parent 1cb39b4 commit b0c72e7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-radios-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/discount-app-components': patch
---

Update Polaris style guide links
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ yarn add @shopify/discount-app-components
/>
```

2. This library contains a number of locale-specific components, and you will be required to pass a `locale` and a `ianaTimezone` to the discounts AppProvider. Also, this library will require you to wrap your app in a [Polaris AppProvider](https://polaris.shopify.com/components/app-provider) and an [AppBridge AppProvider](https://shopify.dev/apps/tools/app-bridge/getting-started/using-react#provider). A full example of an app root can be found below:
2. This library contains a number of locale-specific components, and you will be required to pass a `locale` and a `ianaTimezone` to the discounts AppProvider. Also, this library will require you to wrap your app in a [Polaris AppProvider](https://polaris.shopify.com/components/utilities/app-provider) and an [AppBridge AppProvider](https://shopify.dev/apps/tools/app-bridge/getting-started/using-react#provider). A full example of an app root can be found below:

```js
import {Page, AppProvider as PolarisAppProvider} from '@shopify/polaris';
Expand Down
2 changes: 1 addition & 1 deletion src/components/DatePicker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The DatePicker component provides an input that allows users to select a date from a calendar popover or enter one into a text input.

The calendar is powered by a [Polaris DatePicker](https://polaris.shopify.com/components/forms/date-picker) under the hood.
The calendar is powered by a [Polaris DatePicker](https://polaris.shopify.com/components/selection-and-input/date-picker) under the hood.

---

Expand Down
2 changes: 1 addition & 1 deletion src/components/TimePicker/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function isValidTime(time?: string) {
}

/**
* Given a list of dates, returns a list of options that can be used by a {@link https://polaris.shopify.com/components/forms/select| @shopify/polaris select}
* Given a list of dates, returns a list of options that can be used by a {@link https://polaris.shopify.com/components/selection-and-input/select| @shopify/polaris select}
*
* @param dates - List of dates to convert to options
* @param locale - Locale to use for date formatting
Expand Down

0 comments on commit b0c72e7

Please sign in to comment.