Skip to content

Commit

Permalink
temp commit
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Feb 28, 2024
1 parent 6b9344f commit 965e257
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/src/organisms/LabwarePositionCheck/FatalErrorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const SUPPORT_EMAIL = '[email protected]'

interface FatalErrorModalProps {
errorMessage: string
shouldUseMetalProbe: boolean
onClose: () => void
}
export function FatalErrorModal(props: FatalErrorModalProps): JSX.Element {
Expand Down Expand Up @@ -58,6 +59,15 @@ export function FatalErrorModal(props: FatalErrorModalProps): JSX.Element {
<ErrorHeader>
{i18n.format(t('shared:something_went_wrong'), 'sentenceCase')}
</ErrorHeader>
{props.shouldUseMetalProbe && (
<StyledText
as="p"
textDecoration={TYPOGRAPHY.fontWeightSemiBold}
textAlign={TEXT_ALIGN_CENTER}
>
{t('remove_probe_before_exit')}
</StyledText>
)}
<StyledText as="p" textAlign={TEXT_ALIGN_CENTER}>
{t('shared:help_us_improve_send_error_report', {
support_email: SUPPORT_EMAIL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ export const LabwarePositionCheckComponent = (
modalContent = (
<FatalErrorModal
errorMessage={fatalError}
shouldUseMetalProbe={shouldUseMetalProbe}
onClose={handleCleanUpAndClose}
/>
)
Expand Down

0 comments on commit 965e257

Please sign in to comment.