From 0ac7b9f2992f8052a3f0a5237076c44fcfb50dae Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Fri, 21 Aug 2020 10:20:18 -0700 Subject: [PATCH] chore(docs): fix console warnings for DatePicker docs --- .../components/DatePicker/DatePicker-story.js | 12 +++++- .../src/components/DatePicker/DatePicker.mdx | 42 +++++++++++++++---- 2 files changed, 45 insertions(+), 9 deletions(-) diff --git a/packages/react/src/components/DatePicker/DatePicker-story.js b/packages/react/src/components/DatePicker/DatePicker-story.js index 5e48db83aea0..0dd92d8654d1 100644 --- a/packages/react/src/components/DatePicker/DatePicker-story.js +++ b/packages/react/src/components/DatePicker/DatePicker-story.js @@ -81,7 +81,11 @@ export default { export const Simple = () => ( - + ); @@ -89,7 +93,11 @@ Simple.storyName = 'simple'; export const Single = () => ( - + ); diff --git a/packages/react/src/components/DatePicker/DatePicker.mdx b/packages/react/src/components/DatePicker/DatePicker.mdx index 298ba1cae486..afd9d1bc1d9f 100644 --- a/packages/react/src/components/DatePicker/DatePicker.mdx +++ b/packages/react/src/components/DatePicker/DatePicker.mdx @@ -99,7 +99,11 @@ see the Flatpickr [documentation](https://flatpickr.js.org/formatting/#date-formatting-tokens) - + ```jsx @@ -142,7 +146,11 @@ FlatPickr instance. A complete list of valid locales can be found in the [component API](#component-api) section - + ```jsx @@ -161,7 +169,11 @@ as the `locale` prop example. One is setting it as September 1st, and the other is setting it as January 9th. - +
- + ```jsx @@ -191,7 +207,11 @@ is setting it as January 9th. Works similarly to the `maxDate` prop. [See above](#datepicker-maxdate). - + ### DatePicker `value` @@ -200,14 +220,22 @@ By default `DatePicker` will set the current date as its value. If you'd like to start this at a different date, you can pass in a date string or date object. - +
- + ```jsx