Skip to content

Commit

Permalink
update(examples): refactor animate examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rodgobbi committed Feb 21, 2025
1 parent 587b86b commit 5ebdc5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/AnimateRange.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useState } from "react";

import { DateRange, DayPicker } from "react-day-picker";
import classNames from "react-day-picker/style.module.css";

export function AnimateRange() {
const [selected, setSelected] = useState<DateRange>();
Expand All @@ -13,7 +12,6 @@ export function AnimateRange() {
selected={selected}
onSelect={setSelected}
numberOfMonths={6}
classNames={classNames}
/>
);
}
2 changes: 2 additions & 0 deletions examples/AnimateRtl.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState } from "react";

import { DayPicker } from "react-day-picker";
import classNames from "react-day-picker/style.module.css";

export function AnimateRtl() {
const [selected, setSelected] = useState<Date>();
Expand All @@ -12,6 +13,7 @@ export function AnimateRtl() {
dir="rtl"
selected={selected}
onSelect={setSelected}
classNames={classNames}
footer={
selected ? `Selected: ${selected.toLocaleDateString()}` : "Pick a day."
}
Expand Down

0 comments on commit 5ebdc5d

Please sign in to comment.