Browse Source

#860qjmc7b prompt fixed

pull/2/head
Wahyu Ramadhan 2 years ago
parent
commit
6fdba8ec54
  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