chore: refactor points

This commit is contained in:
Michael Zetterberg
2025-01-05 16:23:17 +01:00
parent d2ce9c0d7c
commit 0477d2375b
6 changed files with 33 additions and 127 deletions
+3 -13
View File
@@ -1,15 +1,5 @@
interface PointsOrNightColumn {
title?: string
export type PointsColumnProps = {
title: string
subtitle?: string
value?: number
}
export interface PointsColumn extends PointsOrNightColumn {
points: number | undefined
nights?: never
}
export interface NightsColumn extends PointsOrNightColumn {
points?: never
nights: number | undefined
}
export type PointsColumnProps = PointsColumn | NightsColumn