minor style fix
This commit is contained in:
parent
946db9a6bc
commit
a8082b0e0d
2 changed files with 1 additions and 54 deletions
|
@ -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 = (
|
||||
// <span {... 'button' in this.props ? {className: 'button__content'} : {}}>
|
||||
// {'icon' in this.props ? <Icon icon={this.props.icon} fixed={true} /> : null}
|
||||
// {<span className="link-label">{this.props.label}</span>}
|
||||
// {'badge' in this.props ? <span className="badge">{this.props.badge}</span> : null}
|
||||
// </span>
|
||||
// );
|
||||
// }
|
||||
|
||||
// return (
|
||||
// <a className={className} href={this.props.href || 'javascript:;'} title={this.props.title}
|
||||
// onClick={(event) => { this.handleClick() }} {... 'style' in this.props ? {style: this.props.style} : {}}>
|
||||
// {content}
|
||||
// </a>
|
||||
// );
|
||||
// }
|
||||
// });
|
||||
|
|
|
@ -39,7 +39,7 @@ class SnackBar extends React.Component {
|
|||
<div className="snack-bar">
|
||||
{message}
|
||||
{linkText && linkTarget &&
|
||||
<Link onClick={() => navigate(linkTarget)} label={linkText} />
|
||||
<Link onClick={() => navigate(linkTarget)} className="snack-bar__action" label={linkText} />
|
||||
}
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue