Merge pull request #2272 from kuesa/master
Add Broken Heart Icon for Unsubscribing
This commit is contained in:
commit
03e2f35d37
4 changed files with 8 additions and 1 deletions
|
@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
- Broken heart icon for unsubscribe ([#2272](https://github.com/lbryio/lbry-desktop/pull/2272)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -110,4 +110,8 @@ export const customIcons = {
|
||||||
/>
|
/>
|
||||||
</g>
|
</g>
|
||||||
),
|
),
|
||||||
|
// Extended from the feather-icons Heart
|
||||||
|
[ICONS.UNSUBSCRIBE]: buildIcon(
|
||||||
|
<path d="M 12,5.67 10.94,4.61 C 5.7533356,-0.57666427 -2.0266644,7.2033357 3.16,12.39 l 1.06,1.06 7.78,7.78 7.78,-7.78 1.06,-1.06 c 2.149101,-2.148092 2.149101,-5.6319078 0,-7.78 -2.148092,-2.1491008 -5.631908,-2.1491008 -7.78,0 L 9.4481298,8.2303201 15.320603,9.2419066 11.772427,13.723825" />
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
|
@ -43,7 +43,7 @@ export default (props: Props) => {
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
iconColor="red"
|
iconColor="red"
|
||||||
icon={isSubscribed ? undefined : ICONS.SUBSCRIPTION}
|
icon={isSubscribed ? ICONS.UNSUBSCRIBE : ICONS.SUBSCRIPTION}
|
||||||
button={buttonStyle || 'alt'}
|
button={buttonStyle || 'alt'}
|
||||||
label={subscriptionLabel}
|
label={subscriptionLabel}
|
||||||
onClick={e => {
|
onClick={e => {
|
||||||
|
|
|
@ -27,6 +27,7 @@ export const PHONE = 'Phone';
|
||||||
export const COMPLETE = 'Check';
|
export const COMPLETE = 'Check';
|
||||||
export const COMPLETED = 'CheckCircle';
|
export const COMPLETED = 'CheckCircle';
|
||||||
export const SUBSCRIPTION = 'Heart';
|
export const SUBSCRIPTION = 'Heart';
|
||||||
|
export const UNSUBSCRIBE = 'BrokenHeart';
|
||||||
export const UNLOCK = 'Unlock';
|
export const UNLOCK = 'Unlock';
|
||||||
export const WEB = 'Globe';
|
export const WEB = 'Globe';
|
||||||
export const SHARE = 'Share2';
|
export const SHARE = 'Share2';
|
||||||
|
|
Loading…
Add table
Reference in a new issue