blob: 9dbe0dc0360414164616ae912b883d39bbdbd636 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
import PropTypes from "prop-types";
import React from "react";
import {connect} from "react-redux";
import {openSimulationSucceeded} from "../actions/simulations";
import AppNavbar from "../components/navigation/AppNavbar";
class ExperimentsComponent extends React.Component {
static propTypes = {
simulationId: PropTypes.number.isRequired,
};
componentDidMount() {
this.props.storeSimulationId(this.props.simulationId);
// 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 {
storeSimulationId: id => dispatch(openSimulationSucceeded(id)),
};
};
const Experiments = connect(
undefined,
mapDispatchToProps
)(ExperimentsComponent);
export default Experiments;
|