Skip to content

Commit

Permalink
feat: #1125: Update uninstall app modal rendeing flow
Browse files Browse the repository at this point in the history
  • Loading branch information
nphivu414 committed May 14, 2020
1 parent 5e83048 commit acf7726
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,43 +161,6 @@ exports[`ClientAppDetailManage should match a snapshot 1`] = `
</div>
</Component>
</AppContent>
<ClientAppUninstallConfirmation
appDetailData={Object {}}
closeUninstallConfirmationModal={[Function]}
visible={false}
>
<Component
afterClose={[Function]}
footerItems={
<React.Fragment>
<Unknown
dataTest="agree-btn"
loading={false}
onClick={[Function]}
type="button"
variant="primary"
>
Confirm
</Unknown>
<Unknown
dataTest="disagree-btn"
disabled={false}
onClick={[Function]}
type="button"
variant="danger"
>
Cancel
</Unknown>
</React.Fragment>
}
title="Confirm undefined installation"
visible={false}
/>
<Component
afterClose={[Function]}
visible={false}
/>
</ClientAppUninstallConfirmation>
</div>
</ClientAppDetailManage>
</Router>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ const ClientAppDetailManage: React.FC<ClientAppDetailManageProps> = () => {
buttonGroup={renderAppHeaderButtonGroup(appDetailData.installedOn || '', onUninstallConfirmationModal)}
/>
<AppContent appDetailData={appDetailData} loginType={loginType} />
<ClientAppUninstallConfirmation
visible={isVisibleUninstallConfirmation}
appDetailData={appDetailData}
closeUninstallConfirmationModal={closeUninstallConfirmationModal}
/>
{isVisibleUninstallConfirmation && (
<ClientAppUninstallConfirmation
visible={isVisibleUninstallConfirmation}
appDetailData={appDetailData}
closeUninstallConfirmationModal={closeUninstallConfirmationModal}
/>
)}
{isLoadingAppDetail && <Loader />}
</div>
)
Expand Down

0 comments on commit acf7726

Please sign in to comment.