diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-12 16:50:45 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:06:00 +0200 |
| commit | f3dbecbf55832df686d6969756640f6f5853f996 (patch) | |
| tree | dc70c5a04e77f6138f86fcd04b2ca9c808bf5037 /src/pages/Experiments.js | |
| parent | cbf8eb9cbf2f4082cb1a83955d435ebcb73be3ab (diff) | |
Add experiments route
Diffstat (limited to 'src/pages/Experiments.js')
| -rw-r--r-- | src/pages/Experiments.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/pages/Experiments.js b/src/pages/Experiments.js new file mode 100644 index 00000000..b35916e5 --- /dev/null +++ b/src/pages/Experiments.js @@ -0,0 +1,36 @@ +import PropTypes from "prop-types"; +import React from "react"; +import {connect} from "react-redux"; +import AppNavbar from "../components/navigation/AppNavbar"; + +class ExperimentsContainer extends React.Component { + static propTypes = { + simulationId: PropTypes.number.isRequired, + }; + + componentDidMount() { + // TODO fetch experiments + } + + render() { + return ( + <div className="full-height"> + <AppNavbar simulationId={this.props.simulationId} inSimulation={true}/> + <div className="container text-page-container full-height"> + Test + </div> + </div> + ); + } +} + +const mapDispatchToProps = dispatch => { + return {}; +}; + +const Experiments = connect( + undefined, + mapDispatchToProps +)(ExperimentsContainer); + +export default Experiments; |
