Skip to content

Commit a0bbe3e

Browse files
committed
refactor:removed modal and added notification after migration execution
1 parent 12ffed3 commit a0bbe3e

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

ui/src/components/LogScreen/MigrationLogViewer.tsx

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Libraries
22
import React, { useEffect, useState, useRef } from 'react';
3-
import { Icon, cbModal, Link } from '@contentstack/venus-components';
3+
import { Icon, Link, Notification } from '@contentstack/venus-components';
44
import io from 'socket.io-client';
55
import { useSelector, useDispatch } from 'react-redux';
66
import { useNavigate, useParams } from 'react-router';
@@ -204,19 +204,13 @@ const MigrationLogViewer = ({ serverPath }: LogsType) => {
204204
*/
205205
//await updateCurrentStepData(selectedOrganisation.value, projectId);
206206

207-
return cbModal({
208-
component: (props: ModalObj) => (
209-
<MigrationCompletionModal
210-
{...props}
211-
isopen={setIsModalOpen}
212-
data={newMigrationData?.stackDetails}
213-
stackLink={stackLink}
214-
/>
215-
),
216-
modalProps: {
217-
size: 'xsmall',
218-
shouldCloseOnOverlayClick: false
219-
}
207+
Notification({
208+
notificationContent: { text: message },
209+
notificationProps: {
210+
position: 'bottom-center',
211+
hideProgressBar: false
212+
},
213+
type: 'success'
220214
});
221215
}
222216
} catch (error) {

0 commit comments

Comments
 (0)