Skip to content

Commit

Permalink
fix(suite): add heading to firmware installation modals to fix close …
Browse files Browse the repository at this point in the history
…button position and unify with other modals

(cherry picked from commit 530a66d)
  • Loading branch information
matejkriz committed Nov 8, 2022
1 parent 826c3fd commit 73ccf72
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/suite/src/views/firmware/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@ const Wrapper = styled.div<{ isWithTopPadding: boolean }>`
const StyledModal = styled(Modal)`
width: 620px;
min-height: 540px;
> ${Modal.Body} {
padding: 0;
margin-top: 0;
height: 100%;
> * {
height: 100%;
}
}
`;

type FirmwareProps = {
Expand Down Expand Up @@ -178,6 +168,7 @@ export const Firmware = ({ shouldSwitchFirmwareType }: FirmwareProps) => {
}
onCancel={onClose}
data-test="@firmware"
heading={<Translation id="TR_INSTALL_FIRMWARE" />}
>
<Wrapper isWithTopPadding={!isCancelable}>{Component}</Wrapper>
</StyledModal>
Expand Down

0 comments on commit 73ccf72

Please sign in to comment.