mirror of
https://github.com/strapi/strapi.git
synced 2025-11-09 22:59:14 +00:00
40 lines
835 B
JavaScript
40 lines
835 B
JavaScript
|
|
/*
|
||
|
|
*
|
||
|
|
* Home
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
|
||
|
|
import React from 'react';
|
||
|
|
import { connect } from 'react-redux';
|
||
|
|
import Helmet from 'react-helmet';
|
||
|
|
import selectHome from './selectors';
|
||
|
|
import { FormattedMessage } from 'react-intl';
|
||
|
|
import messages from './messages';
|
||
|
|
import styles from './styles.scss';
|
||
|
|
|
||
|
|
export class Home extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
||
|
|
render() {
|
||
|
|
return (
|
||
|
|
<div className={styles.home}>
|
||
|
|
<Helmet
|
||
|
|
title="Home"
|
||
|
|
meta={[
|
||
|
|
{ name: 'description', content: 'Description of Home' },
|
||
|
|
]}
|
||
|
|
/>
|
||
|
|
<FormattedMessage {...messages.header} />
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
const mapStateToProps = selectHome();
|
||
|
|
|
||
|
|
function mapDispatchToProps(dispatch) {
|
||
|
|
return {
|
||
|
|
dispatch,
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
export default connect(mapStateToProps, mapDispatchToProps)(Home);
|