Skip to content

Commit

Permalink
Merge pull request #59 from getpingback/fix/range-picker-initial-date
Browse files Browse the repository at this point in the history
Fix/range picker initial date
  • Loading branch information
Jessmartins91 authored Jan 21, 2025
2 parents 478bc34 + be83240 commit 82a069e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.0.320](https://github.com/getpingback/ui/compare/v0.0.319...v0.0.320) (2025-01-21)


### Bug Fixes

* initial date on range picker ([3421670](https://github.com/getpingback/ui/commits/3421670f34f339bf4afb2f459031b634f0179105))

### [0.0.318](https://github.com/getpingback/ui/compare/v0.0.317...v0.0.318) (2025-01-13)

### [0.0.317](https://github.com/getpingback/ui/compare/v0.0.316...v0.0.317) (2025-01-13)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@getpingback/ui",
"author": "Pingback Team",
"version": "0.0.319",
"version": "0.0.321",
"license": "MIT",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/components/range-picker/range-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export function RangePicker({

locale: LOCALE[locale],
numberOfMonths: type === 'range' ? 2 : 1,
defaultMonth: initialRangeDate?.from || new Date(),
defaultMonth: type === 'range' ? initialRangeDate?.from : initialSingleDate || new Date(),
components: {
IconLeft: () => <ChevronLeftIcon className="h-6 w-6" />,
IconRight: () => <ChevronRightIcon className="h-6 w-6" />
Expand Down

0 comments on commit 82a069e

Please sign in to comment.