File size: 839 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { useLocale } from '@automattic/i18n-utils';
import { translate } from 'i18n-calypso';
import ReactDOM from 'react-dom';
import SurveyModal from 'calypso/components/survey-modal';

export const GitHubDeploymentSurvey = () => {
	const localeSlug = useLocale();

	if ( localeSlug !== 'en' ) {
		return null;
	}

	return ReactDOM.createPortal(
		<SurveyModal
			name="github-deployments"
			url="https://automattic.survey.fm/github-deployments-survey?initiated-from=calypso"
			title={ translate( 'Share your thoughts on GitHub Deployments' ) }
			description={ translate(
				'Got a moment? Wed love to hear about your experience using GitHub Deployments in our quick survey.'
			) }
			dismissText={ translate( 'Remind later' ) }
			confirmText={ translate( 'Take survey' ) }
			showOverlay={ false }
		/>,
		document.body
	);
};