Skip to content

Commit fd445d2

Browse files
authored
fix: update React peerDependency to accept v17 (#596)
* fix: update React peerDependency to accept v17 * chore: add error state checkbox to Storybook
1 parent f26f8ca commit fd445d2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"typescript": "4.2.4"
7373
},
7474
"peerDependencies": {
75-
"react": ">=16.8.0",
75+
"react": "^16.8 || ^17.0",
7676
"semantic-ui-react": ">=0.75.0"
7777
},
7878
"resolutions": {

stories/index.stories.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export const basicUsage = () => {
4747
const maxDate = new Date(date('Max date', new Date('2030-01-01')));
4848
const onlyWeekdays = boolean('Only weekdays (filterDate example)', false);
4949
const controlValue = boolean('Control value', false);
50+
const error = boolean('Error state', false);
5051
const initialValue = controlValue
5152
? type === 'basic'
5253
? new Date(date('Initial value'))
@@ -64,6 +65,7 @@ export const basicUsage = () => {
6465
clearOnSameDateClick={clearOnSameDateClick}
6566
clearable={clearable}
6667
datePickerOnly={datePickerOnly}
68+
error={error}
6769
filterDate={filterDate}
6870
firstDayOfWeek={firstDayOfWeek}
6971
format={format}

0 commit comments

Comments
 (0)