diff --git a/ui/js/component/link/view.js b/ui/js/component/link/view.js index 783fefe3a..78fbacb89 100644 --- a/ui/js/component/link/view.js +++ b/ui/js/component/link/view.js @@ -45,56 +45,3 @@ const Link = (props) => { } export default Link - -// export let Link = React.createClass({ -// propTypes: { -// label: React.PropTypes.string, -// icon: React.PropTypes.string, -// button: React.PropTypes.string, -// badge: React.PropTypes.string, -// hidden: React.PropTypes.bool, -// }, -// getDefaultProps: function() { -// return { -// hidden: false, -// disabled: false, -// }; -// }, -// handleClick: function(e) { -// if (this.props.onClick) { -// this.props.onClick(e); -// } -// }, -// render: function() { -// if (this.props.hidden) { -// return null; -// } - -// /* The way the class name is generated here is a mess -- refactor */ - -// const className = (this.props.className || '') + -// (!this.props.className && !this.props.button ? 'button-text' : '') + // Non-button links get the same look as text buttons -// (this.props.button ? ' button-block button-' + this.props.button + ' button-set-item' : '') + -// (this.props.disabled ? ' disabled' : ''); - -// let content; -// if (this.props.children) { // Custom content -// content = this.props.children; -// } else { -// content = ( -// -// {'icon' in this.props ? : null} -// {{this.props.label}} -// {'badge' in this.props ? {this.props.badge} : null} -// -// ); -// } - -// return ( -// { this.handleClick() }} {... 'style' in this.props ? {style: this.props.style} : {}}> -// {content} -// -// ); -// } -// }); diff --git a/ui/js/component/snackBar/view.jsx b/ui/js/component/snackBar/view.jsx index 98206ae2b..dbb15faef 100644 --- a/ui/js/component/snackBar/view.jsx +++ b/ui/js/component/snackBar/view.jsx @@ -39,7 +39,7 @@ class SnackBar extends React.Component {
{message} {linkText && linkTarget && - navigate(linkTarget)} label={linkText} /> + navigate(linkTarget)} className="snack-bar__action" label={linkText} /> }
);