add @icon to subscribe button
This commit is contained in:
parent
9c5b724c70
commit
800cc4318a
2 changed files with 4 additions and 1 deletions
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue