Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency react-datepicker to v7 #406

Merged
merged 2 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
4 changes: 2 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"pino": "^9.0.0",
"react": "^18.2.0",
"react-beautiful-dnd": "^13.1.1",
"react-datepicker": "^6.9.0",
"react-datepicker": "^7.0.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.51.3",
"react-hot-toast": "^2.4.1",
Expand Down Expand Up @@ -90,7 +90,7 @@
"@types/node": "20.16.5",
"@types/react": "^18.2.79",
"@types/react-beautiful-dnd": "^13.1.8",
"@types/react-datepicker": "^6.0.0",
"@types/react-datepicker": "^7.0.0",
"@types/react-dom": "^18.2.25",
"@ufb/eslint-config": "workspace:*",
"@ufb/prettier-config": "workspace:*",
Expand Down
12 changes: 6 additions & 6 deletions apps/web/src/shared/styles/react-datepicker.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@apply p-2;
}
.react-datepicker__current-month {
@apply bg-fill-quaternary font-16-regular text-primary rounded-sm px-4 py-3;
@apply bg-fill-quaternary font-16-regular text-primary rounded-sm px-4 py-3 !important;
}

.react-datepicker__navigation--previous,
Expand Down Expand Up @@ -72,18 +72,18 @@
color: var(--text-color-tertiary);
}

.react-datepicker__day:hover,
.react-datepicker__month-text:hover,
.react-datepicker__quarter-text:hover,
.react-datepicker__year-text:hover {
.react-datepicker__day:not([aria-disabled='true']):hover,
.react-datepicker__month-text:not([aria-disabled='true']):hover,
.react-datepicker__quarter-text:not([aria-disabled='true']):hover,
.react-datepicker__year-text:not([aria-disabled='true']):hover {
@apply text-inverse bg-fill-primary rounded-full;
}

.react-datepicker__day--disabled:hover,
.react-datepicker__month-text--disabled:hover,
.react-datepicker__quarter-text--disabled:hover,
.react-datepicker__year-text--disabled:hover {
@apply bg-transparent;
@apply rounded-full bg-transparent;
color: var(--text-color-tertiary);
}

Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/shared/ui/date-range-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ const DateRangePicker: React.FC<IProps> = (props) => {
setCurrentValue({ startDate: v[0], endDate: v[1] });
setActiveIdx(-1);
}}
startDate={currentValue?.startDate}
endDate={currentValue?.endDate}
startDate={currentValue?.startDate ?? undefined}
endDate={currentValue?.endDate ?? undefined}
monthsShown={2}
minDate={minDate}
maxDate={maxDate}
Expand Down
70 changes: 44 additions & 26 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading