Skip to content

Commit

Permalink
fix(ui): close jar details modal on key escape
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Dec 20, 2023
1 parent b7c0efd commit c4164e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/MainWalletView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default function MainWalletView({ wallet }: MainWalletViewProps) {
</rb.Row>
)}

{currentWalletInfo && jars && isAccountOverlayShown && (
{currentWalletInfo && jars && (
<JarDetailsOverlay
jars={jars}
initialJarIndex={selectedJarIndex}
Expand Down
1 change: 0 additions & 1 deletion src/components/jar_details/JarDetailsOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ const JarDetailsOverlay = (props: JarDetailsOverlayProps) => {
className={`offcanvas-fullscreen ${styles.overlayContainer}`}
show={props.isShown}
onHide={props.onHide}
keyboard={false}
placement="bottom"
>
<rb.Offcanvas.Header>
Expand Down

0 comments on commit c4164e0

Please sign in to comment.