Show multiple launches on table
This commit is contained in:
@@ -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.Td>
|
<Table.Tr>
|
||||||
<MissionLaunchStatusBadge
|
<Table.Td>{missionLaunch.scheduledFor}</Table.Td>
|
||||||
status={mission.missionLaunch?.status ?? 'Cancelled'}
|
<Table.Td>
|
||||||
/>
|
<MissionLaunchStatusBadge
|
||||||
</Table.Td>
|
status={missionLaunch.status}
|
||||||
|
/>
|
||||||
|
</Table.Td>
|
||||||
|
</Table.Tr>
|
||||||
|
))}
|
||||||
</Table.Tbody>
|
</Table.Tbody>
|
||||||
</Table>
|
</Table>
|
||||||
</Table.Td>
|
</Table.Td>
|
||||||
|
|||||||
Reference in New Issue
Block a user