Show multiple launches on table

This commit is contained in:
Stedoss
2026-07-27 23:37:29 +01:00
parent b59f325f42
commit 3dbf003078
@@ -155,7 +155,7 @@ function CreateMissionLaunchForm({ missionId }: { missionId: string }) {
<Stack> <Stack>
<DateTimePicker <DateTimePicker
label="Scheduled For" label="Scheduled For"
placeholder="Orbital Bloom" placeholder="Select scheduled for date/time"
withAsterisk withAsterisk
key={form.key('scheduledFor')} key={form.key('scheduledFor')}
popoverProps={{ withinPortal: false }} popoverProps={{ withinPortal: false }}
@@ -245,7 +245,7 @@ function MissionsTableRow({ mission }: { mission: Mission }) {
<> <>
<Table.Tr> <Table.Tr>
<Table.Td colSpan={12}> <Table.Td colSpan={12}>
<Table highlightOnHover> <Table>
<Table.Thead> <Table.Thead>
<Table.Tr> <Table.Tr>
<Table.Th>Scheduled For</Table.Th> <Table.Th>Scheduled For</Table.Th>
@@ -253,12 +253,16 @@ function MissionsTableRow({ mission }: { mission: Mission }) {
</Table.Tr> </Table.Tr>
</Table.Thead> </Table.Thead>
<Table.Tbody> <Table.Tbody>
<Table.Td>{mission.missionLaunch?.scheduledFor}</Table.Td> {mission.missionLaunches.map((missionLaunch) => (
<Table.Tr>
<Table.Td>{missionLaunch.scheduledFor}</Table.Td>
<Table.Td> <Table.Td>
<MissionLaunchStatusBadge <MissionLaunchStatusBadge
status={mission.missionLaunch?.status ?? 'Cancelled'} status={missionLaunch.status}
/> />
</Table.Td> </Table.Td>
</Table.Tr>
))}
</Table.Tbody> </Table.Tbody>
</Table> </Table>
</Table.Td> </Table.Td>