/* * * HomePage * */ import React from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; // import PropTypes from 'prop-types'; import cn from 'classnames'; import Block from 'components/HomePageBlock/Loadable'; import Button from 'components/Button'; import Sub from 'components/Sub/Loadable'; import BlockLink from './BlockLink'; import CreateContent from './CreateContent'; import WelcomeContent from './WelcomeContent'; import styles from './styles.scss'; const FIRST_BLOCK = [ { title: { id: 'app.components.HomePage.welcome', }, content: () => , }, { title: { id: 'app.components.HomePage.create', }, content: () => , }, ]; const FIRST_BLOCK_LINKS = [ { link: 'https://strapi.io/documentation/', content: { id: 'app.components.BlockLink.documentation.content', }, isDocumentation: true, title: { id: 'app.components.BlockLink.documentation', }, }, { link: 'https://github.com/strapi/strapi-examples', content: { id: 'app.components.BlockLink.code.content', }, isDocumentation: false, title: { id: 'app.components.BlockLink.code', }, }, ]; export class HomePage extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return (
{FIRST_BLOCK.map((value, key) => )}
{FIRST_BLOCK_LINKS.map((value, key) => )}
{message =>

{message}

}
{message => ( {message} )}
); } } HomePage.propTypes = { // history: PropTypes.object.isRequired, }; function mapDispatchToProps(dispatch) { return { dispatch, }; } export default connect(mapDispatchToProps)(HomePage);