Updated dependencies; fixes some TS issues uncovered by update

This commit is contained in:
gbuomprisco
2024-09-10 10:55:28 +02:00
parent 460479bf1a
commit bc624e7d96
23 changed files with 554 additions and 531 deletions

View File

@@ -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) {

View File

@@ -171,6 +171,7 @@ const ChartTooltipContent = React.forwardRef<
labelKey,
]);
/* @ts-expect-error: TS issue */
if (!active ?? !payload?.length) {
return null;
}