mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-13 13:48:59 +02:00
Fix
This commit is contained in:
parent
b74480cd37
commit
4029d4ae2a
@ -47,7 +47,7 @@ interface ICreationArchiveChartProps {
|
||||
isLoading?: boolean;
|
||||
}
|
||||
|
||||
type WeekData = {
|
||||
export type WeekData = {
|
||||
archivedFlags: number;
|
||||
totalCreatedFlags: number;
|
||||
createdFlagsByType: Record<string, number>;
|
||||
|
@ -2,7 +2,8 @@ import type { FC } from 'react';
|
||||
import { Box, Paper, Typography, styled, useTheme } from '@mui/material';
|
||||
import type { TooltipState } from 'component/insights/components/LineChart/ChartTooltip/ChartTooltip';
|
||||
import { ChartTooltipContainer } from 'component/insights/components/LineChart/ChartTooltip/ChartTooltip';
|
||||
|
||||
import type { Theme } from '@mui/material/styles/createTheme';
|
||||
import type { WeekData } from './CreationArchiveChart.tsx';
|
||||
const getRatioTooltipColors = (theme: Theme) => ({
|
||||
CREATED: theme.palette.success.main,
|
||||
ARCHIVED: theme.palette.background.application,
|
||||
@ -42,7 +43,7 @@ export const CreationArchiveRatioTooltip: FC<
|
||||
return null;
|
||||
}
|
||||
|
||||
const rawData = ratioDataPoint.raw as RatioDataPointRaw;
|
||||
const rawData = ratioDataPoint.raw as WeekData;
|
||||
|
||||
if (!rawData) {
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user