chore: refactor points
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user