2022-09-15 03:58:47 +00:00
|
|
|
|
/**
|
|
|
|
|
* External dependencies
|
|
|
|
|
*/
|
|
|
|
|
import interpolateComponents from '@automattic/interpolate-components';
|
|
|
|
|
import { Button } from '@wordpress/components';
|
|
|
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
|
|
|
|
|
|
interface EmailSentProps {
|
2022-09-15 08:26:43 +00:00
|
|
|
|
returnToSendLinkPage: () => void;
|
2022-09-15 03:58:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const EmailSentPage: React.FC< EmailSentProps > = ( {
|
2022-09-15 08:26:43 +00:00
|
|
|
|
returnToSendLinkPage: returnToSendLinkPage,
|
2022-09-15 03:58:47 +00:00
|
|
|
|
} ) => {
|
|
|
|
|
return (
|
|
|
|
|
<div className="email-sent-modal-body">
|
|
|
|
|
<div className="email-sent-illustration"></div>
|
|
|
|
|
<div className="email-sent-title">
|
|
|
|
|
<h1>{ __( 'Check your email!', 'woocommerce' ) }</h1>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="email-sent-subheader-spacer">
|
|
|
|
|
<div className="email-sent-subheader">
|
|
|
|
|
{ __(
|
|
|
|
|
'We just sent you the magic link. Open it on your mobile device and follow the instructions.',
|
|
|
|
|
'woocommerce'
|
|
|
|
|
) }
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="email-sent-footer">
|
|
|
|
|
<div className="email-sent-footer-prompt">
|
|
|
|
|
{ __( 'DIDN’T GET IT?', 'woocommerce' ) }
|
|
|
|
|
</div>
|
|
|
|
|
<div className="email-sent-footer-text">
|
|
|
|
|
{ interpolateComponents( {
|
|
|
|
|
mixedString: __(
|
|
|
|
|
'Check your spam/junk email folder or {{ sendAnotherLink /}}.',
|
|
|
|
|
'woocommerce'
|
|
|
|
|
),
|
|
|
|
|
components: {
|
|
|
|
|
sendAnotherLink: (
|
|
|
|
|
<Button
|
|
|
|
|
className="email-sent-send-another-link"
|
|
|
|
|
onClick={ () => {
|
2022-09-15 08:26:43 +00:00
|
|
|
|
returnToSendLinkPage();
|
2022-09-15 03:58:47 +00:00
|
|
|
|
} }
|
|
|
|
|
>
|
|
|
|
|
{ __( 'send another link', 'woocommerce' ) }
|
|
|
|
|
</Button>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
} ) }
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|