accounts-frontend/src/components/footerMenu/FooterMenu.jsx

47 lines
1.2 KiB
React
Raw Normal View History

2016-05-22 22:55:38 +05:30
import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router';
import { FormattedMessage as Message } from 'react-intl';
2016-05-28 02:08:11 +05:30
import { LangMenu } from 'components/langMenu';
2016-05-22 22:55:38 +05:30
import styles from './footerMenu.scss';
import messages from './footerMenu.intl.json';
export default class FooterMenu extends Component {
static displayName = 'FooterMenu';
static propTypes = {
createPopup: PropTypes.func.isRequired
};
render() {
return (
<div className={styles.footerMenu}>
<Link to="/rules">
<Message {...messages.rules} />
</Link>
{' | '}
<a href="#" onClick={this.onContact}>
<Message {...messages.contactUs} />
</a>
2016-05-28 02:08:11 +05:30
<LangMenu />
2016-05-22 22:55:38 +05:30
</div>
);
}
onContact = (event) => {
event.preventDefault();
this.props.createPopup();
};
}
import { connect } from 'react-redux';
import ContactForm from 'components/contact/ContactForm';
import { create as createPopup } from 'components/ui/popup/actions';
export default connect(null, {
createPopup: () => createPopup(ContactForm)
})(FooterMenu);