File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
src/pages/Bug/Modals/MigrationModal Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 99 Span ,
1010 Dropdown ,
1111 Select ,
12+ useToast ,
13+ Notification ,
1214} from '@appquality/unguess-design-system' ;
1315import { Label , MediaInput } from '@zendeskgarden/react-forms' ;
1416import { 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 } ;
You can’t perform that action at this time.
0 commit comments