Skip to content

Commit

Permalink
Merge pull request #1258 from evenchange4/patch-1
Browse files Browse the repository at this point in the history
fix(addons/info): Cannot read property 'props' of undefined
  • Loading branch information
shilman authored Jun 12, 2017
2 parents a81283f + 106514f commit 8bfdc25
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions addons/info/src/components/markdown/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ export function A(props) {
const style = {
color: '#3498db',
};
return <a href={this.props.href} style={style}>{props.children}</a>;
return (
<a href={props.href} target="_blank" rel="noopener noreferrer" style={style}>
{props.children}
</a>
);
}

A.defaultProps = defaultProps;
A.propTypes = propTypes;
A.propTypes = { children: PropTypes.node, href: PropTypes.string.isRequired };

0 comments on commit 8bfdc25

Please sign in to comment.