57 lines
1.4 KiB
JavaScript
Raw Normal View History

2017-01-17 13:40:59 +01:00
/*
2017-05-11 15:52:22 +02:00
* Home
2017-01-17 13:40:59 +01:00
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
2017-01-18 11:59:46 +01:00
import { injectIntl } from 'react-intl';
2017-01-17 13:40:59 +01:00
import Container from '../../components/Container';
import styles from './styles.scss';
2017-05-11 15:52:22 +02:00
export class Home extends React.Component {
2017-01-17 13:40:59 +01:00
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-05-11 10:54:44 +02: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.',
}}
/>
2017-01-17 13:40:59 +01:00
<Container>
<p>Nothing to do here.</p>
2017-05-11 10:54:44 +02:00
<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>
);
}
}
2017-05-11 15:52:22 +02:00
Home.propTypes = {
2017-05-11 10:54:44 +02:00
exposedComponents: React.PropTypes.object.isRequired,
};
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
2017-05-11 10:54:44 +02:00
export default connect(mapStateToProps, mapDispatchToProps)(
2017-05-11 15:52:22 +02:00
injectIntl(Home)
2017-05-11 10:54:44 +02:00
);