Skip to content

Commit

Permalink
Change the title of inspection card
Browse files Browse the repository at this point in the history
  • Loading branch information
prasm313 committed Jan 10, 2024
1 parent 50e1df0 commit 03cfc6e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions frontend/src/components/Pages/InspectionPage/DeckCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const DeckCard = ({ deckData, deckName, setSelectedDeck, selectedDeck, handleSch
>
<StyledDict.DeckText>
<StyledDict.TopDeckText>
<Typography variant={'body_short_bold'}>{deckName.toString()}</Typography>
<Typography variant={'body_short_bold'}>{formattedAreaNames}</Typography>
{deckData.inspections
.filter((i) => ongoingMissions.find((m) => m.missionId === i.missionDefinition.id))
.map((inspection) => (
Expand All @@ -70,10 +70,8 @@ const DeckCard = ({ deckData, deckName, setSelectedDeck, selectedDeck, handleSch
</StyledDict.Content>
))}
</StyledDict.TopDeckText>
{deckData.areas && <Typography variant={'body_short'}>{formattedAreaNames}</Typography>}
{deckData.inspections && (
<CardMissionInformation deckName={deckName} inspections={deckData.inspections} />
)}
<Typography variant={'body_short'}>{deckName}</Typography>
<CardMissionInformation deckName={deckName} inspections={deckData.inspections} />
</StyledDict.DeckText>
<StyledDict.CardComponent>
<Tooltip
Expand Down

0 comments on commit 03cfc6e

Please sign in to comment.