46 lines
1.3 KiB
JavaScript
Raw Normal View History

2017-01-17 13:40:59 +01:00
/*
* HomePage
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import Container from 'components/Container';
2017-01-18 11:59:46 +01:00
import { injectIntl } from 'react-intl';
2017-01-17 13:40:59 +01:00
import styles from './styles.scss';
2017-01-17 13:40:59 +01:00
export class HomePage extends React.Component {
render() {
2017-03-15 11:48:56 +01:00
const PluginHeader = this.props.exposedComponents.PluginHeader;
2017-01-17 13:40:59 +01:00
return (
<div>
<div className={`container-fluid ${styles.containerFluid}`}>
2017-03-15 11:48:56 +01:00
<PluginHeader title={{
id: 'plugin-content-manager-title',
defaultMessage: 'Content Manager'
}} description={{
id: 'plugin-content-manager-description',
defaultMessage: 'A powerful UI to easily manage your data.'
}} noActions={true}>
2017-03-15 11:48:56 +01:00
</PluginHeader>
2017-01-17 13:40:59 +01:00
<Container>
<p>Nothing to do here.</p>
<p>To edit your content's entries go to the specific link in the left menu.</p>
2017-01-17 13:40:59 +01:00
</Container>
</div>
</div>
);
}
}
export function mapDispatchToProps() {
return {};
2017-01-17 13:40:59 +01:00
}
const mapStateToProps = createStructuredSelector({});
2017-01-17 13:40:59 +01:00
// Wrap the component to inject dispatch and state into it
export default connect(mapStateToProps, mapDispatchToProps)(injectIntl(HomePage));