1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-13 13:48:59 +02:00
This commit is contained in:
sjaanus 2025-07-29 17:26:06 +03:00
parent b74480cd37
commit 4029d4ae2a
No known key found for this signature in database
GPG Key ID: 20E007C0248BA7FF
2 changed files with 4 additions and 3 deletions

View File

@ -47,7 +47,7 @@ interface ICreationArchiveChartProps {
isLoading?: boolean;
}
type WeekData = {
export type WeekData = {
archivedFlags: number;
totalCreatedFlags: number;
createdFlagsByType: Record<string, number>;

View File

@ -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;