add @icon to subscribe button

This commit is contained in:
Sean Yesmunt 2017-12-10 13:26:21 -05:00
parent 9c5b724c70
commit 800cc4318a
2 changed files with 4 additions and 1 deletions

View file

@ -8,6 +8,7 @@ const Link = props => {
style,
label,
icon,
iconRight,
button,
disabled,
children,
@ -36,8 +37,9 @@ const Link = props => {
} else {
content = (
<span {...("button" in props ? { className: "button__content" } : {})}>
{"icon" in props ? <Icon icon={icon} fixed={true} /> : null}
{icon ? <Icon icon={icon} fixed={true} /> : null}
{label ? <span className="link-label">{label}</span> : null}
{iconRight ? <Icon icon={iconRight} fixed={true} /> : null}
</span>
);
}

View file

@ -23,6 +23,7 @@ export default ({
return channelName && uri ? (
<div className="card__actions">
<Link
iconRight={isSubscribed ? "" : "at"}
button={isSubscribed ? "alt" : "primary"}
label={subscriptionLabel}
onClick={() => subscriptionHandler({