diff --git a/changelog/add-1527-survey-modal-on-deactivation b/changelog/add-1527-survey-modal-on-deactivation new file mode 100644 index 00000000000..d2f860f88ed --- /dev/null +++ b/changelog/add-1527-survey-modal-on-deactivation @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Add a feedback survey modal upon deactivation. diff --git a/client/plugins-page/deactivation-survey/index.js b/client/plugins-page/deactivation-survey/index.js new file mode 100644 index 00000000000..faa4eaf2228 --- /dev/null +++ b/client/plugins-page/deactivation-survey/index.js @@ -0,0 +1,50 @@ +/** + * External dependencies + */ +import React, { useState } from 'react'; +import { __ } from '@wordpress/i18n'; +import { Modal } from '@wordpress/components'; + +/** + * Internal dependencies + */ +import './style.scss'; +import Loadable from 'wcpay/components/loadable'; +import WooPaymentsIcon from 'assets/images/woopayments.svg?asset'; + +const PluginDisableSurvey = ( { onRequestClose } ) => { + const [ isLoading, setIsLoading ] = useState( true ); + + return ( + + } + isDismissible={ true } + shouldCloseOnClickOutside={ false } // Should be false because of the iframe. + shouldCloseOnEsc={ true } + onRequestClose={ onRequestClose } + className="woopayments-disable-survey" + > + +