Skip to content

Commit

Permalink
Merge pull request #2486 from keep-network/title-for-modal-window-fix
Browse files Browse the repository at this point in the history
Fix bug with modal window's title not displaying

This PR fixes the bug which prevented modal window's title from being displayed
after changes from #2444
  • Loading branch information
r-czajkowski authored Jun 1, 2021
2 parents 778d7fe + 5c6711d commit 87c1385
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions solidity/dashboard/src/components/Modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,17 @@ const Modal = React.memo(
: ""
}`}
>
{!isFullScreen ||
(!hideTitleBar && (
<div className="modal-title">
<h4 className="text-darker-grey">{props.title}</h4>
<div className="modal-close" onClick={closeModal}>
<Icons.Cross
width={crossIconWidth}
height={crossIconHeight}
/>
</div>
{!isFullScreen && !hideTitleBar && (
<div className="modal-title">
<h4 className="text-darker-grey">{props.title}</h4>
<div className="modal-close" onClick={closeModal}>
<Icons.Cross
width={crossIconWidth}
height={crossIconHeight}
/>
</div>
))}
</div>
)}
<div className="modal-content">{props.children}</div>
</div>
</div>,
Expand Down

0 comments on commit 87c1385

Please sign in to comment.