Update dependencies and refactor calendar component

- Upgraded several dependencies in package.json and package-lock.json, including @faker-js/faker, next, react, and typescript, to their latest versions for improved performance and security.
- Refactored the Calendar component in calendar.tsx to simplify icon rendering by removing unnecessary props, enhancing code readability.

These changes ensure the application is up-to-date with the latest library versions and improve the maintainability of the Calendar component.
This commit is contained in:
2024-12-25 21:54:56 +05:00
parent 5c167e436d
commit df820ffdf0
3 changed files with 106 additions and 114 deletions

View File

@@ -12,7 +12,7 @@
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
},
"dependencies": {
"@faker-js/faker": "^9.2.0",
"@faker-js/faker": "^9.3.0",
"@hookform/resolvers": "^3.9.1",
"@prisma/client": "^5.22.0",
"@radix-ui/react-alert-dialog": "^1.1.2",
@@ -36,14 +36,14 @@
"jotai": "^2.8.0",
"lucide-react": "^0.460.0",
"motion": "^11.15.0",
"next": "15.0.3",
"next": "15.1.2",
"next-themes": "^0.4.3",
"nextjs-toploader": "^3.7.15",
"prisma": "^5.22.0",
"react": "19.0.0-rc-66855b96-20241106",
"react": "19.0.0",
"react-aria-components": "^1.5.0",
"react-day-picker": "^8.10.1",
"react-dom": "19.0.0-rc-66855b96-20241106",
"react-dom": "19.0.0",
"react-hook-form": "^7.53.2",
"react-phone-number-input": "^3.4.9",
"sonner": "^1.7.0",
@@ -53,14 +53,14 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/node": "^22.10.2",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"eslint": "^8",
"eslint-config-next": "15.0.3",
"postcss": "^8",
"eslint-config-next": "15.1.2",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.1",
"ts-node": "^10.9.2",
"typescript": "^5"
"typescript": "^5.7.2"
}
}