Files
SCM-Manager/scm-ui/src/repos/containers/ChangesetView.js

41 lines
706 B
JavaScript
Raw Normal View History

2018-09-13 12:20:28 +02:00
//@flow
import React from "react";
2018-09-20 08:32:02 +02:00
import { connect } from "react-redux";
import { withRouter } from "react-router-dom";
2018-09-13 12:20:28 +02:00
2018-09-20 08:32:02 +02:00
type Props = {
id: string
};
class ChangesetView extends React.Component<State, Props> {
constructor(props) {
super(props);
this.state = {};
}
componentDidMount() {
const id = this.props.match.params.id;
}
2018-09-13 12:20:28 +02:00
render() {
2018-09-20 08:32:02 +02:00
const id = this.props.match.params.id;
return <div>Hallo! Changesets here! {id}</div>;
2018-09-13 12:20:28 +02:00
}
}
2018-09-20 08:32:02 +02:00
const mapStateToProps = (state, ownProps: Props) => {
return null;
};
const mapDispatchToProps = dispatch => {
return null;
};
export default withRouter(
connect(
mapStateToProps,
mapDispatchToProps
)(ChangesetView)
);