mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
34 lines
692 B
JavaScript
34 lines
692 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import { connect } from 'react-redux';
|
|
import { create as createPopup } from 'components/ui/popup/actions';
|
|
import ContactForm from './ContactForm';
|
|
|
|
function ContactLink({
|
|
createContactPopup,
|
|
...props
|
|
}: {
|
|
createContactPopup: () => void,
|
|
props: Object
|
|
}) {
|
|
return (
|
|
<a
|
|
href="#"
|
|
data-e2e-button="feedbackPopup"
|
|
onClick={(event) => {
|
|
event.preventDefault();
|
|
|
|
createContactPopup();
|
|
}}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export default connect(
|
|
null,
|
|
{
|
|
createContactPopup: () => createPopup(ContactForm)
|
|
}
|
|
)(ContactLink);
|