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

Loading…
Cancel
Save