2020-07-06 21:59:56 +05:30
|
|
|
|
import React, { ComponentProps, ComponentType } from 'react';
|
|
|
|
|
import { FormattedMessage as Message } from 'react-intl';
|
|
|
|
|
|
|
|
|
|
import Popup from 'app/components/ui/popup';
|
|
|
|
|
import { Button } from 'app/components/ui/form';
|
|
|
|
|
|
|
|
|
|
import styles from './contactForm.scss';
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
email: string;
|
|
|
|
|
onClose?: ComponentProps<typeof Popup>['onClose'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const SuccessContactFormPopup: ComponentType<Props> = ({ email, onClose }) => (
|
|
|
|
|
<Popup
|
|
|
|
|
title={<Message key="title" defaultMessage="Feedback form" />}
|
|
|
|
|
wrapperClassName={styles.successStateBoundings}
|
|
|
|
|
onClose={onClose}
|
|
|
|
|
data-testid="feedbackPopup"
|
|
|
|
|
>
|
|
|
|
|
<div className={styles.successBody}>
|
|
|
|
|
<span className={styles.successIcon} />
|
|
|
|
|
<div className={styles.successDescription}>
|
|
|
|
|
<Message
|
|
|
|
|
key="youMessageReceived"
|
|
|
|
|
defaultMessage="Your message was received. We will respond to you shortly. The answer will come to your E‑mail:"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div className={styles.sentToEmail}>{email}</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className={styles.footer}>
|
2020-07-22 16:50:10 +05:30
|
|
|
|
<Button block onClick={onClose}>
|
|
|
|
|
<Message key="close" defaultMessage="Close" />
|
|
|
|
|
</Button>
|
2020-07-06 21:59:56 +05:30
|
|
|
|
</div>
|
|
|
|
|
</Popup>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
export default SuccessContactFormPopup;
|