<commit_before>/**
* ErrorMessage.jsx
* Created by <NAME> 2/24/16
**/

import React, { PropTypes } from 'react';
import * as Icons from './icons/Icons.jsx';

const propTypes = {
    message: PropTypes.string.isRequired
};

export default class ErrorMessage extends React.Component {
    render() {
        return (
                <div className="alert alert-error mt-40 mb-0" role="alert">
                    <span className="usa-da-icon"><Icons.ExclamationCircle /></span>
                    <div className="alert-header-text">Error</div>
                    <p data-testid="errormessage">{this.props.message}</p>
                </div>
        );
    }
}
<commit_msg>Updating error message component to render error text as html in order for login error messages to display links correctly<commit_after>/**
* ErrorMessage.jsx
* Created by <NAME> 2/24/16
**/

import React, { PropTypes } from 'react';
import * as Icons from './icons/Icons.jsx';

const propTypes = {
    message: PropTypes.string.isRequired
};

export default class ErrorMessage extends React.Component {
    render() {
        return (
                <div className="alert alert-error mt-40 mb-0" role="alert">
                    <span className="usa-da-icon"><Icons.ExclamationCircle /></span>
                    <div className="alert-header-text">Error</div>
                    <p data-testid="errormessage" dangerouslySetInnerHTML={{__html: this.props.message}} />
                </div>
        );
    }
}

{'fraction_non_alphanumeric': 0.13324360699865412, 'fraction_numerical': 0.010767160161507403, 'mean_word_length': 2.387243735763098, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, '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': '821235', 'n_tokens_mistral': 436, 'n_tokens_neox': 420, 'n_words': 105}