fix: a few type issues

This commit is contained in:
TresAbhi committed 2023-09-23 23:30:14 +00:00
1 parent a1e6643dc0
commit 9e89198cd5
5 files changed
+77 -39

No files matched your search

+5 -11
View File
@@ -4,18 +4,12 @@ import { theme } from '../../../stitches.config';
import { TREE_TYPE_ICONS, TreeTypeEnum } from '../../Tanks';
import { RowStat } from './RowStat';
type RowProps = (
| {
type: 'tank';
treeType?: TreeTypeEnum;
tankType?: TankType;
}
| {
type: 'summary';
}
) & {
interface RowProps {
type: 'tank' | 'summary';
title: string;
minimized?: boolean;
treeType?: TreeTypeEnum;
tankType?: TankType;
rows: {
title: string;
@@ -24,7 +18,7 @@ type RowProps = (
delta?: number;
percentile?: Percentile;
}[];
};
}
export function Row(props: RowProps) {
return (