Browse Source

Merge pull request '#860qjmc7b prompt fixed' (#32) from dev-wahyu into staging

Reviewed-on: ordo/adw-frontend#32
Reviewed-by: ibnu <ibnu@mail.com>
pull/2/head
ibnu 1 year ago
parent
commit
76685eec83
  1. 10
      src/views/SimproV2/CreatedProyek/ImportActivity/index.js

10
src/views/SimproV2/CreatedProyek/ImportActivity/index.js

@ -145,7 +145,6 @@ const ImportActivity = ({ params }) => {
}
setDatatable(dataMapped)
setIsPreview(true)
}
});
@ -317,16 +316,13 @@ const ImportActivity = ({ params }) => {
</Spin>
</CardBody>
</Card>
<Prompt
when={isPreview}
message={() => 'Import Activity belum disave ingin meninggalkan halaman ini?'}
/>
</div>
)
}
return (
<div>
{isPreview ? null : <Prompt message='Import Activity belum disave ingin meninggalkan halaman ini?' />}
<NotificationContainer />
<div>
<Row>
@ -386,10 +382,6 @@ const ImportActivity = ({ params }) => {
/>
</CardBody>
</Card>
<Prompt
when={isPreview}
message={() => 'Import Activity belum disave ingin meninggalkan halaman ini?'}
/>
</div>
)
}

Loading…
Cancel
Save