Skip to content

Commit

Permalink
Add robot name to mission views
Browse files Browse the repository at this point in the history
  • Loading branch information
oysand committed Oct 18, 2022
1 parent 8f2d6be commit e5292ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export function OngoingMissionCard({ mission }: MissionProps) {
return (
<StyledMissionCard variant="default" style={{ boxShadow: tokens.elevation.raised }} onClick={routeChange}>
<Typography variant="h6">{mission.name}</Typography>
<Typography>{mission.robot.name}</Typography>
<HorisontalContent>
<MissionStatusDisplay status={mission.missionStatus} />
<MissionProgressDisplay />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ interface MissionProps {
}

const StyledMissionCard = styled(Card)`
width: 700px;
width: 900px;
display: flex;
`
const HorizontalContent = styled.div`
display: grid;
grid-template-columns: 50px auto auto auto auto 50px;
grid-template-columns: 50px 200px 100px auto auto auto 50px;
align-items: center;
`
const StyledMissionStartTime = styled.div`
Expand Down Expand Up @@ -44,6 +44,7 @@ export function UpcomingMissionCard({ mission }: MissionProps) {
<HorizontalContent>
<Checkbox />
<Typography variant="h6">{mission.name}</Typography>
<Typography>{mission.robot.name}</Typography>
<MissionStartTimeDisplay mission={mission} />
<Typography>Tasks: {numberOfTasks}</Typography>
<MissionDurationDisplay mission={mission} />
Expand Down

0 comments on commit e5292ec

Please sign in to comment.