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,
|
style,
|
||||||
label,
|
label,
|
||||||
icon,
|
icon,
|
||||||
|
iconRight,
|
||||||
button,
|
button,
|
||||||
disabled,
|
disabled,
|
||||||
children,
|
children,
|
||||||
|
@ -36,8 +37,9 @@ const Link = props => {
|
||||||
} else {
|
} else {
|
||||||
content = (
|
content = (
|
||||||
<span {...("button" in props ? { className: "button__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}
|
{label ? <span className="link-label">{label}</span> : null}
|
||||||
|
{iconRight ? <Icon icon={iconRight} fixed={true} /> : null}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,7 @@ export default ({
|
||||||
return channelName && uri ? (
|
return channelName && uri ? (
|
||||||
<div className="card__actions">
|
<div className="card__actions">
|
||||||
<Link
|
<Link
|
||||||
|
iconRight={isSubscribed ? "" : "at"}
|
||||||
button={isSubscribed ? "alt" : "primary"}
|
button={isSubscribed ? "alt" : "primary"}
|
||||||
label={subscriptionLabel}
|
label={subscriptionLabel}
|
||||||
onClick={() => subscriptionHandler({
|
onClick={() => subscriptionHandler({
|
||||||
|
|
Loading…
Add table
Reference in a new issue