Skip to content

Commit

Permalink
unmount invisible modal
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined committed May 21, 2020
1 parent e509fc1 commit b04d4de
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ exports[`AppContent AppContent - should match snapshoot 1`] = `
}
>
<div>
<Component
visible={false}
/>
<div />
<div>
<Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,23 @@ const AppContent: React.FC<AppContentProps> = ({ appDetailData }) => {

return (
<div className={clientAppDetailStyles.appContentContainer}>
<Modal visible={isVisibleUninstallModal}>
<ConfirmUninstall
isSetAppDetailStaleAfterUninstallSuccess={false}
appName={name}
installationDetail={uninstallApp}
afterClose={handleAfterClose({ setUninstallApp })}
onUninstallSuccess={handleUninstallSuccess({
handleAfterClose,
setUninstallApp,
developerId,
appId: id,
dispatch,
})}
/>
</Modal>

{isVisibleUninstallModal && (
<Modal visible={isVisibleUninstallModal}>
<ConfirmUninstall
isSetAppDetailStaleAfterUninstallSuccess={false}
appName={name}
installationDetail={uninstallApp}
afterClose={handleAfterClose({ setUninstallApp })}
onUninstallSuccess={handleUninstallSuccess({
handleAfterClose,
setUninstallApp,
developerId,
appId: id,
dispatch,
})}
/>
</Modal>
)}
<div className={clientAppDetailStyles.gutter}>{summary}</div>
<div className={appDetailStyles.gutter}>
<H5 className="flex items-center">
Expand Down

0 comments on commit b04d4de

Please sign in to comment.