<commit_before>import React from 'react';
import { connect } from 'react-redux';

import apiRequest from '../../lib/api_request.jsx';
import ColleaguesFormShow from './colleagues_form_show.jsx';

const ColleaguesShow = React.createClass({
  componentDidMount() {
    this.fetchData();
  },

  fetchData() {
    let formatName = this.props.routeParams.formatName;
    let url = `/backend/colleagues/${formatName}`;
    apiRequest(url).then( json => {
      console.log(json);
      // let _data = _.findWhere(json, { format_name: name });
      // this.setState({ data: _data, isLoadPending: false });
    });
  },

  render () {
    return (
      <div>
        <ColleaguesFormShow
          isReadOnly={true} isCurator={false} 
          colleagueDisplayName={this.props.routeParams.formatName}
        />
      </div>
    );
  }
});

function mapStateToProps(_state) {
  return {
  };
}

export default connect(mapStateToProps)(ColleaguesShow);
<commit_msg>colleague show style<commit_after>import React from 'react';
import Radium from 'radium';
import { connect } from 'react-redux';

import ColleaguesFormShow from './colleagues_form_show.jsx';

const ColleaguesShow = React.createClass({
  render () {
    return (
      <div style={[style.container]}>
        <ColleaguesFormShow
          isReadOnly={true} isCurator={false} 
          colleagueDisplayName={this.props.routeParams.formatName}
        />
        <a className='button secondary small disabled'>Update Colleague</a>
      </div>
    );
  }
});

const style = {
  container: {
    marginBottom: '2rem'
  }
};

function mapStateToProps(_state) {
  return {
  };
}

export default connect(mapStateToProps)(Radium(ColleaguesShow));

{'fraction_non_alphanumeric': 0.13705882352941176, 'fraction_numerical': 0.000588235294117647, 'mean_word_length': 3.263157894736842, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '367277', 'n_tokens_mistral': 536, 'n_tokens_neox': 536, 'n_words': 102}