Skip to content

Commit a621702

Browse files
committed
Lint files
Signed-off-by: gpbl <io@gpbl.dev>
1 parent 370c6d3 commit a621702

File tree

5 files changed

+12
-24
lines changed

5 files changed

+12
-24
lines changed

examples/InputTime.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import { format, setHours, setMinutes } from "date-fns";
2-
import React, {
3-
type ChangeEventHandler,
4-
useEffect,
5-
useState,
6-
} from "react";
2+
import React, { type ChangeEventHandler, useEffect, useState } from "react";
73
import { DayPicker } from "react-day-picker";
84

95
export function InputTime() {

examples/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ export * from "./CssVariables";
1515
export * from "./CustomCaption";
1616
export * from "./CustomDayButton";
1717
export * from "./CustomDropdown";
18+
export * from "./CustomMonthSelection";
1819
export * from "./CustomMultiple";
20+
export * from "./CustomRollingWindow";
1921
export * from "./CustomSingle";
2022
export * from "./CustomWeek";
21-
export * from "./CustomRollingWindow";
22-
export * from "./CustomMonthSelection";
2323
export * from "./DefaultMonth";
2424
export * from "./Dialog";
2525
export * from "./Disabled";

website/docs/guides/custom-components.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ Custom components allow you to extend DayPicker beyond just using [formatters](.
5050

5151
### Component props cheat sheet
5252

53-
| Component | Props type | Notes |
54-
| --------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
55-
| `Day` | [`DayProps`](../api/functions/Day.md) | Receives `day` (with `date`) and `modifiers`. |
56-
| `DayButton` | [`DayButtonProps`](../api/functions/DayButton.md) | Handles focus; keep forwarding `ref`/`aria-*`. |
57-
| `Nav` | [`NavProps`](../api/functions/Nav.md) | Use provided `onPreviousClick`/`onNextClick`. |
58-
| `Dropdown` | [`DropdownProps`](../api/functions/Dropdown.md) | Forward `aria-label` and call `onChange` with target. |
59-
| `Root` | [`RootProps`](../api/functions/Root.md) | Forward `rootRef` when `animate` is enabled. |
53+
| Component | Props type | Notes |
54+
| ----------- | ------------------------------------------------- | ----------------------------------------------------- |
55+
| `Day` | [`DayProps`](../api/functions/Day.md) | Receives `day` (with `date`) and `modifiers`. |
56+
| `DayButton` | [`DayButtonProps`](../api/functions/DayButton.md) | Handles focus; keep forwarding `ref`/`aria-*`. |
57+
| `Nav` | [`NavProps`](../api/functions/Nav.md) | Use provided `onPreviousClick`/`onNextClick`. |
58+
| `Dropdown` | [`DropdownProps`](../api/functions/Dropdown.md) | Forward `aria-label` and call `onChange` with target. |
59+
| `Root` | [`RootProps`](../api/functions/Root.md) | Forward `rootRef` when `animate` is enabled. |
6060

6161
The `components` prop accepts a **partial** map—pass only the entries you want to override. The legacy `Button` entry is deprecated; prefer `NextMonthButton` and `PreviousMonthButton`.
6262

website/docs/guides/custom-selections.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ Note the use of the `startOfWeek` and `endOfWeek` functions from [date-fns](http
3232
import React, { useState } from "react";
3333

3434
import { endOfWeek, startOfWeek } from "date-fns";
35-
import {
36-
type DateRange,
37-
DayPicker,
38-
rangeIncludesDate,
39-
} from "react-day-picker";
35+
import { type DateRange, DayPicker, rangeIncludesDate } from "react-day-picker";
4036

4137
/** Select the whole week when the day is clicked. */
4238
export function CustomWeek() {

website/docs/guides/timepicker.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ DayPicker does not include a built-in time picker. However, you can implement a
1515
Derive the time input value from the selected date so the UI stays synchronized, even when the date changes programmatically.
1616

1717
```tsx
18-
import React, {
19-
type ChangeEventHandler,
20-
useEffect,
21-
useState,
22-
} from "react";
18+
import React, { type ChangeEventHandler, useEffect, useState } from "react";
2319

2420
import { format, setHours, setMinutes } from "date-fns";
2521
import { DayPicker } from "react-day-picker";

0 commit comments

Comments
 (0)