Skip to content

Commit

Permalink
fix(suite): fix layout in ReconnectDevicePrompt
Browse files Browse the repository at this point in the history
  • Loading branch information
komret committed Sep 10, 2024
1 parent f5e9db0 commit 6458ebd
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions packages/suite/src/components/firmware/ReconnectDevicePrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ import { useDevice, useFirmware } from 'src/hooks/suite';
import { AbortButton } from 'src/components/suite/modals/AbortButton';
import { ConfirmOnDevice } from '@trezor/product-components';
import { TranslationKey } from '@suite-common/intl-types';
import { spacings } from '@trezor/theme';

const StyledModal = styled(Modal)`
width: 580px;
width: 600px;
${Modal.Body} {
padding: 38px 22px 6px;
Expand Down Expand Up @@ -98,12 +99,6 @@ const StyledConfirmImage = styled(DeviceConfirmImage)`
height: 200px;
`;

// eslint-disable-next-line local-rules/no-override-ds-component
const Heading = styled(H2)`
margin-bottom: 16px;
font-weight: ${variables.FONT_WEIGHT.DEMI_BOLD};
`;

const StyledWebUsbButton = styled(WebUsbButton)`
margin-top: 24px;
`;
Expand Down Expand Up @@ -278,9 +273,9 @@ export const ReconnectDevicePrompt = ({ onClose, onSuccess }: ReconnectDevicePro
)}

<Content>
<Heading>
<H2 margin={{ bottom: spacings.md }}>
<Translation id={getHeading()} />
</Heading>
</H2>

{!isRebootDone ? (
<>
Expand Down

0 comments on commit 6458ebd

Please sign in to comment.