Skip to content

Commit f95deb3

Browse files
committed
fix: typing issues with deps
1 parent e5b04c9 commit f95deb3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/frontend/src/components/Graph/CustomTooltip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState, useEffect } from "react";
22

33
import { Box, Divider, Text } from "@chakra-ui/layout";
4-
import { TooltipProps } from "recharts";
4+
import { TooltipContentProps } from "recharts";
55
import { Icon } from "@chakra-ui/react";
66
// for recharts v2.1 and above
77
import {
@@ -13,7 +13,7 @@ import { BiError } from "react-icons/bi";
1313
import { getHoursSinceLaunch } from "../../hooks/graphing/utils";
1414
import { setupHourlyUpdate } from "../../utils";
1515

16-
interface CustomTooltipProps extends TooltipProps<ValueType, NameType> {
16+
interface CustomTooltipProps extends TooltipContentProps<ValueType, NameType> {
1717
upperBoundry: number;
1818
fetchedLeagues: string[];
1919
colors: string[];

src/frontend/src/components/Graph/GraphComponent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
Tooltip,
88
Legend,
99
ResponsiveContainer,
10-
TooltipProps,
10+
TooltipContentProps,
1111
} from "recharts";
1212
// for recharts v2.1 and above
1313
import {
@@ -158,7 +158,7 @@ function GraphComponent(props: BoxProps) {
158158
allowDataOverflow
159159
/>
160160
<Tooltip
161-
content={(props: TooltipProps<ValueType, NameType>) => (
161+
content={(props: TooltipContentProps<ValueType, NameType>) => (
162162
<CustomTooltip
163163
{...props}
164164
upperBoundry={upperBoundryChaos}

0 commit comments

Comments
 (0)