Add code reference tab
@@ -2,6 +2,7 @@ import * as React from 'react';
import * as actions from '../actions/codeReference';
import { CodeReferenceModel } from '../models/codeReference';
+import VerticalTable from './verticalTable';
export interface Props {
codeReference: CodeReferenceModel;
@@ -16,8 +17,16 @@ export default class CodeReference extends React.Component<Props, {}> {
public render() {
const getComponent = () => {
if (this.props.codeReference) {
+ const values = {
+ 'commit': this.props.codeReference.commit,
+ 'branch': this.props.codeReference.branch,
+ 'head': this.props.codeReference.head,
+ 'is dirty': this.props.codeReference.is_dirty,
+ 'git url': this.props.codeReference.git_url,
+ 'repo': this.props.codeReference.repo
+ };
return (
- this.props.codeReference.id
+ <VerticalTable values={values}/>
);
}
return (null);
