|
|
|
@ -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> |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|