Skip to content

Commit

Permalink
Improve readability of Failed card
Browse files Browse the repository at this point in the history
  • Loading branch information
prasm313 committed Feb 7, 2024
1 parent 3e24b09 commit 116ae51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions frontend/src/components/Alerts/FailedMissionAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ import { useNavigate } from 'react-router-dom'
import { useLanguageContext } from 'components/Contexts/LanguageContext'

const Indent = styled.div`
padding: 0px 9px;
padding: 0px 0px 0px 5px;
`

const StyledButton = styled(Button)`
:hover {
background-color: #ff9797;
}
text-align: left;
height: auto;
padding: 5px 5px;
`

interface MissionsProps {
Expand Down Expand Up @@ -47,8 +50,9 @@ const SeveralFailedMissions = ({ missions }: MissionsProps) => {

return (
<StyledButton onClick={goToHistory} variant="ghost" color="secondary">
<strong>{missions.length}</strong>{' '}
{' ' + TranslateText("missions failed recently. See 'Mission History' for more information.")}
{missions.length.toString() +
' ' +
TranslateText("missions failed recently. See 'Mission History' for more information.")}
</StyledButton>
)
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Alerts/FailedRequestAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ export const FailedRequestAlertContent = ({ translatedMessage }: { translatedMes
</StyledButton>
</StyledDiv>
)
}
}

0 comments on commit 116ae51

Please sign in to comment.