-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(date-input, date-range): upgrade react-day-picker to v9
Upgrades react-day-picker to remove the dependency on React 18
- Loading branch information
1 parent
f22f539
commit d4e9a17
Showing
19 changed files
with
714 additions
and
457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import type { Page } from "@playwright/test"; | ||
|
||
import { DAY_PICKER_WRAPPER, DAY_PICKER_HEADING } from "./locators"; | ||
|
||
// component preview locators | ||
|
||
export const dayPickerWrapper = (page: Page) => | ||
page.locator(DAY_PICKER_WRAPPER); | ||
export const dayPickerHeading = (page: Page) => | ||
page.locator(DAY_PICKER_HEADING).locator("div"); | ||
page.locator(DAY_PICKER_HEADING); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// component preview locators | ||
export const DAY_PICKER_WRAPPER = 'div[class="DayPicker-wrapper"]'; | ||
export const DAY_PICKER_HEADING = ".DayPicker-Caption"; | ||
export const DAY_PICKER_WRAPPER = 'div[class="rdp-root"]'; | ||
export const DAY_PICKER_HEADING = 'span[class="rdp-caption_label"]'; |
Oops, something went wrong.