Updated dependencies; fixes some TS issues uncovered by update
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"date-fns": "^3.6.0",
|
||||
"eslint": "^8.57.0",
|
||||
"next": "14.2.8",
|
||||
"next": "14.2.9",
|
||||
"next-themes": "0.3.0",
|
||||
"prettier": "^3.3.3",
|
||||
"react-day-picker": "^8.10.1",
|
||||
@@ -58,7 +58,7 @@
|
||||
"sonner": "^1.5.0",
|
||||
"tailwindcss": "3.4.10",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
"typescript": "^5.5.4",
|
||||
"typescript": "^5.6.2",
|
||||
"zod": "^3.23.8"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
||||
@@ -10,7 +10,7 @@ const ROOT_PATH = '/';
|
||||
export function isRouteActive(
|
||||
path: string,
|
||||
currentPath: string,
|
||||
end?: boolean | ((path: string) => boolean) | undefined,
|
||||
end?: boolean | ((path: string) => boolean),
|
||||
) {
|
||||
// if the path is the same as the current path, we return true
|
||||
if (path === currentPath) {
|
||||
|
||||
@@ -171,6 +171,7 @@ const ChartTooltipContent = React.forwardRef<
|
||||
labelKey,
|
||||
]);
|
||||
|
||||
/* @ts-expect-error: TS issue */
|
||||
if (!active ?? !payload?.length) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user