Put commit hash and build time on admin page

This commit is contained in:
2017-02-17 12:15:37 +00:00
parent a880a5f2bc
commit a5ea6dc035
4 changed files with 45 additions and 0 deletions

View File

@@ -22,6 +22,10 @@ class Admin extends React.Component {
name: PropTypes.string,
total: PropTypes.integer,
})).isRequired,
build: PropTypes.shape({
hash: PropTypes.string,
time: PropTypes.string,
}),
};
render() {
@@ -50,6 +54,12 @@ class Admin extends React.Component {
))}
</ul>
</div>
<div>
Build hash: <a href={`https://bitbucket.org/dan_head/wedding/commits/${this.props.build.hash}`}>{this.props.build.hash}</a>
</div>
<div>
Build time: {this.props.build.time}
</div>
</div>
</div>
);