Skip to content

Commit

Permalink
Merge branch 'feature/wallets_with_traders_hub_2' of https://github.c…
Browse files Browse the repository at this point in the history
…om/binary-com/deriv-app into WALL-1842-Figma-mismatch-on-crypto-withdrawal-page
  • Loading branch information
heorhi-deriv committed Sep 20, 2023
2 parents 3b76c6a + d7af919 commit 20a54a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const DesktopRealWalletsUpgrade = observer(({ wallet_upgrade_steps }: TRealWalle
width='1200px'
should_header_stick_body={false}
has_close_icon
title=' '
>
<Modal.Body className='wallet-steps'>
<WalletsUpgradeContent wallet_upgrade_steps={wallet_upgrade_steps} />
Expand Down
4 changes: 1 addition & 3 deletions packages/components/src/components/modal/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ const ModalElement = ({

const rendered_title = renderTitle ? renderTitle() : null;

const is_header_visible = !is_risk_warning_visible && (header || title || rendered_title || has_close_icon);

return ReactDOM.createPortal(
<div
ref={wrapper_ref}
Expand All @@ -153,7 +151,7 @@ const ModalElement = ({
minHeight: min_height || 0,
}}
>
{is_header_visible && (
{!is_risk_warning_visible && (header || title || rendered_title) && (
<div
className={classNames('dc-modal-header', {
'dc-modal-header__border-bottom': !should_header_stick_body,
Expand Down

0 comments on commit 20a54a1

Please sign in to comment.