Skip to content

Commit e51633b

Browse files
committed
fix: added missing toast
1 parent c2b0e61 commit e51633b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/pages/Bug/Modals/MigrationModal/index.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import {
99
Span,
1010
Dropdown,
1111
Select,
12+
useToast,
13+
Notification,
1214
} from '@appquality/unguess-design-system';
1315
import { Label, MediaInput } from '@zendeskgarden/react-forms';
1416
import { Trans, useTranslation } from 'react-i18next';
@@ -61,6 +63,7 @@ export const MigrationModal = ({
6163
setIsMigrationModalOpen: (isOpen: boolean) => void;
6264
}) => {
6365
const { t } = useTranslation();
66+
const { addToast } = useToast();
6467
const { campaignId } = useParams();
6568
const dispatch = useAppDispatch();
6669
const [patchCustomStatuses] = usePatchCampaignsByCidCustomStatusesMutation();
@@ -130,7 +133,18 @@ export const MigrationModal = ({
130133
],
131134
});
132135
}
133-
136+
addToast(
137+
({ close }) => (
138+
<Notification
139+
onClose={close}
140+
type="success"
141+
message={t('__BUGS_PAGE_CUSTOM_STATUS_DRAWER_CONFIRM_TOAST')}
142+
closeText={t('__TOAST_CLOSE_TEXT')}
143+
isPrimary
144+
/>
145+
),
146+
{ placement: 'top' }
147+
);
134148
setIsMigrationModalOpen(false);
135149
dispatch(setCustomStatusDrawerOpen(false));
136150
};

0 commit comments

Comments
 (0)