feat(ui): add reservations tab to berth detail

This commit is contained in:
Matt Ciaccio
2026-04-24 14:22:06 +02:00
parent 3c5267f5e9
commit ddcffe9f6f
2 changed files with 100 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
import { type DetailTab } from '@/components/shared/detail-layout';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { TagBadge } from '@/components/shared/tag-badge';
import { BerthReservationsTab } from './berth-reservations-tab';
type BerthData = {
id: string;
@@ -87,7 +88,10 @@ function OverviewTab({ berth }: { berth: BerthData }) {
}
/>
<SpecRow label="Draft" value={formatDim(berth.draftFt, berth.draftM)} />
<SpecRow label="Nominal Boat Size" value={berth.nominalBoatSize || berth.nominalBoatSizeM} />
<SpecRow
label="Nominal Boat Size"
value={berth.nominalBoatSize || berth.nominalBoatSizeM}
/>
<SpecRow
label="Water Depth"
value={
@@ -179,6 +183,11 @@ export function buildBerthTabs(berth: BerthData): DetailTab[] {
label: 'Interests',
content: <StubTab label="Interests" />,
},
{
id: 'reservations',
label: 'Reservations',
content: <BerthReservationsTab berthId={berth.id} />,
},
{
id: 'waiting-list',
label: 'Waiting List',