Skip to content

Commit

Permalink
fix(app): correct desktop error recovery header text
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Nov 20, 2024
1 parent 2f501a6 commit 3d22cbd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 1 addition & 4 deletions app/src/organisms/ErrorRecoveryFlows/ErrorRecoveryWizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,7 @@ export function ErrorRecoveryComponent(
const buildTitleHeading = (): JSX.Element => {
const titleText = hasLaunchedRecovery ? t('recovery_mode') : t('cancel_run')
return (
<StyledText
oddStyle="level4HeaderBold"
desktopStyle="headingSmallRegular"
>
<StyledText oddStyle="level4HeaderBold" desktopStyle="bodyLargeSemiBold">
{titleText}
</StyledText>
)
Expand Down
10 changes: 9 additions & 1 deletion app/src/organisms/ErrorRecoveryFlows/RecoveryTakeover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,17 @@ export function RecoveryTakeoverDesktop({
}: RecoveryTakeoverProps): JSX.Element {
const { t } = useTranslation('error_recovery')

const buildTitleHeadingDesktop = (): JSX.Element => {
return (
<StyledText desktopStyle="bodyLargeSemiBold">
{t('error_on_robot', { robot: robotName })}
</StyledText>
)
}

return (
<RecoveryInterventionModal
titleHeading={t('error_on_robot', { robot: robotName })}
titleHeading={buildTitleHeadingDesktop()}
desktopType={'desktop-small'}
isOnDevice={false}
>
Expand Down

0 comments on commit 3d22cbd

Please sign in to comment.