77 lines
1.8 KiB
JavaScript
Raw Normal View History

/*
*
* Home
*
*/
import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import PluginLeftMenu from 'components/PluginLeftMenu';
import InputToggle from 'components/InputToggle';
import selectHome from './selectors';
import styles from './styles.scss';
export class Home extends React.Component { // eslint-disable-line react/prefer-stateless-function
2017-07-10 16:34:12 +02:00
constructor(props) {
super(props);
this.state = {
2017-07-11 18:41:51 +02:00
value: false,
value1: null,
2017-07-10 16:34:12 +02:00
}
}
2017-07-06 16:18:43 +02:00
2017-07-10 16:34:12 +02:00
handleChange = ({ target }) => {
2017-07-11 18:41:51 +02:00
console.log('ok');
console.log(target);
this.setState({ value: !this.state.value});
2017-07-10 16:34:12 +02:00
}
2017-07-06 16:18:43 +02:00
render() {
2017-07-10 16:34:12 +02:00
const test = {
"name": "bame",
"slug": "name",
"target": "general.name",
"type": "text",
"value": "ExperienceApp",
"validations" : {
"maxLength": 12,
2017-07-10 16:34:12 +02:00
"required": true,
"regex": /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
}
};
return (
<div className={styles.home}>
2017-07-06 16:18:43 +02:00
<div className={styles.baseline}></div>
<Helmet
title="Home"
meta={[
{ name: 'description', content: 'Description of Home' },
]}
/>
<div className="container-fluid">
<div className="row">
2017-07-06 16:18:43 +02:00
<div className="col-md-9">
2017-07-10 16:34:12 +02:00
<div className="form-group">
</div>
</div>
</div>
</div>
</div>
);
}
}
const mapStateToProps = selectHome();
function mapDispatchToProps(dispatch) {
return {
dispatch,
};
}
export default connect(mapStateToProps, mapDispatchToProps)(Home);