<commit_before>/**
  * SubmissionLink.jsx
  * Created by <NAME> 05/16/16
  **/

import React from 'react';
import * as Icons from '../../SharedComponents/icons/Icons.jsx';

const propTypes = {
	submissionId: React.PropTypes.oneOfType([
		React.PropTypes.string,
		React.PropTypes.number
	]).isRequired
}

const defaultProps = {
	submissionId: ''
}

export default class SubmissionLink extends React.Component {
	render() {
		return (
			<div className="usa-da-recent-activity-link">
				<a href={"#/validateData/" + this.props.submissionId}>
					<Icons.Eye alt="View" />
				</a>
			</div>
		);
	}<commit_msg>bringing my changes back<commit_after>/**
  * SubmissionLink.jsx
  * Created by <NAME> 05/16/16
  **/

import React from 'react';
import * as Icons from '../../SharedComponents/icons/Icons.jsx';
import * as SubmissionHelper from '../../../helpers/submissionGuideHelper.js';

const propTypes = {
	submissionId: React.PropTypes.oneOfType([
		React.PropTypes.string,
		React.PropTypes.number
	]).isRequired
}

const defaultProps = {
	submissionId: ''
}

export default class SubmissionLink extends React.Component {
	constructor(props) {
		super(props);
		this.state = {
			page: '/'
		}
	}

	componentDidMount() {
		SubmissionHelper.getSubmissionPage(this.props.submissionId)
			.then((res) => {
				this.setState({page: res.url})
			});
	}
	render() {
		return (
			<div className="usa-da-recent-activity-link">
				<a href={"#" + this.state.page}>
					<Icons.Eye alt="View" />
				</a>
			</div>
		);
	}
{'fraction_non_alphanumeric': 0.16512549537648613, 'fraction_numerical': 0.007926023778071334, 'mean_word_length': 3.4169096209912535, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 16, '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': '1085594', 'n_tokens_mistral': 590, 'n_tokens_neox': 532, 'n_words': 101}