diff --git a/scm-ui/src/repos/changesets/containers/ChangesetView.js b/scm-ui/src/repos/changesets/containers/ChangesetView.js index c3b7c248ae..e00b62aa14 100644 --- a/scm-ui/src/repos/changesets/containers/ChangesetView.js +++ b/scm-ui/src/repos/changesets/containers/ChangesetView.js @@ -1,12 +1,40 @@ //@flow import React from "react"; +import { connect } from "react-redux"; +import { withRouter } from "react-router-dom"; -type Props = {}; +type Props = { + id: string +}; + +class ChangesetView extends React.Component { + constructor(props) { + super(props); + this.state = {}; + } + + componentDidMount() { + const id = this.props.match.params.id; + } -class ChangesetView extends React.Component { render() { - return
Hallo! Changesets here!
; + const id = this.props.match.params.id; + + return
Hallo! Changesets here! {id}
; } } -export default ChangesetView; +const mapStateToProps = (state, ownProps: Props) => { + return null; +}; + +const mapDispatchToProps = dispatch => { + return null; +}; + +export default withRouter( + connect( + mapStateToProps, + mapDispatchToProps + )(ChangesetView) +);