Skip to content

Commit 65844a2

Browse files
authored
chore(deps): migrate to @seerr-team/react-tailwindcss-datepicker (#2330)
Migrates from `react-tailwindcss-datepicker-sct` to `@seerr-team/react-tailwindcss-datepicker`, our own fork published on npm. This fork includes a fix for keyboard input not working in single date mode (typing a date and pressing enter now properly applies the filter). fix #1585
1 parent 6275569 commit 65844a2

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"@formatjs/swc-plugin-experimental": "^0.4.0",
4242
"@headlessui/react": "1.7.12",
4343
"@heroicons/react": "2.2.0",
44+
"@seerr-team/react-tailwindcss-datepicker": "^1.3.4",
4445
"@supercharge/request-ip": "1.2.0",
4546
"@svgr/webpack": "6.5.1",
4647
"@tanem/react-nprogress": "5.0.56",
@@ -90,7 +91,6 @@
9091
"react-popper-tooltip": "4.4.2",
9192
"react-select": "5.10.2",
9293
"react-spring": "9.7.1",
93-
"react-tailwindcss-datepicker-sct": "1.3.4",
9494
"react-toast-notifications": "2.5.1",
9595
"react-transition-group": "^4.4.5",
9696
"react-truncate-markup": "5.1.2",

pnpm-lock.yaml

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Discover/FilterSlideover/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import {
1919
} from '@app/hooks/useUpdateQueryParams';
2020
import defineMessages from '@app/utils/defineMessages';
2121
import { XCircleIcon } from '@heroicons/react/24/outline';
22+
import Datepicker from '@seerr-team/react-tailwindcss-datepicker';
2223
import { useIntl } from 'react-intl';
23-
import Datepicker from 'react-tailwindcss-datepicker-sct';
2424

2525
const messages = defineMessages('components.Discover.FilterSlideover', {
2626
filters: 'Filters',

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const defaultTheme = require('tailwindcss/defaultTheme');
55
module.exports = {
66
mode: 'jit',
77
content: [
8-
'./node_modules/react-tailwindcss-datepicker-sct/dist/index.esm.js',
8+
'./node_modules/@seerr-team/react-tailwindcss-datepicker/dist/index.esm.js',
99
'./src/pages/**/*.{ts,tsx}',
1010
'./src/components/**/*.{ts,tsx}',
1111
],

0 commit comments

Comments
 (0)