From fde752379a3656a2ab8f60589f8c9de895e81274 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 27 Jun 2025 16:15:03 +0300 Subject: [PATCH] add new icons --- assets/icons/bellPlus_stroke2_corner0_rounded.svg | 1 + assets/icons/bellRinging_filled_corner0_rounded.svg | 1 + .../activity-notifications/SubscribeProfileButton.tsx | 11 +++++++++-- .../activity-notifications/SubscribeProfileDialog.tsx | 2 +- src/components/icons/BellPlus.tsx | 5 +++++ src/components/icons/BellRinging.tsx | 4 ++++ 6 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 assets/icons/bellPlus_stroke2_corner0_rounded.svg create mode 100644 assets/icons/bellRinging_filled_corner0_rounded.svg create mode 100644 src/components/icons/BellPlus.tsx diff --git a/assets/icons/bellPlus_stroke2_corner0_rounded.svg b/assets/icons/bellPlus_stroke2_corner0_rounded.svg new file mode 100644 index 0000000000..7e3349427a --- /dev/null +++ b/assets/icons/bellPlus_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/bellRinging_filled_corner0_rounded.svg b/assets/icons/bellRinging_filled_corner0_rounded.svg new file mode 100644 index 0000000000..67be5d99d3 --- /dev/null +++ b/assets/icons/bellRinging_filled_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/src/components/activity-notifications/SubscribeProfileButton.tsx b/src/components/activity-notifications/SubscribeProfileButton.tsx index baecb0bef6..14a22658a2 100644 --- a/src/components/activity-notifications/SubscribeProfileButton.tsx +++ b/src/components/activity-notifications/SubscribeProfileButton.tsx @@ -8,8 +8,9 @@ import {createSanitizedDisplayName} from '#/lib/moderation/create-sanitized-disp import {atoms as a} from '#/alf' import {Button, ButtonIcon} from '#/components/Button' import {useDialogControl} from '#/components/Dialog' +import {BellPlus_Stroke2_Corner0_Rounded as BellPlusIcon} from '#/components/icons/BellPlus' +import {BellRinging_Filled_Corner0_Rounded as BellRingingIcon} from '#/components/icons/BellRinging' import type * as bsky from '#/types/bsky' -import {Bell_Stroke2_Corner0_Rounded as NotificationIcon} from '../icons/Bell' import {SubscribeProfileDialog} from './SubscribeProfileDialog' export function SubscribeProfileButton({ @@ -38,6 +39,12 @@ export function SubscribeProfileButton({ ], }) + const isSubscribed = + profile.viewer?.activitySubscription?.post || + profile.viewer?.activitySubscription?.reply + + const Icon = isSubscribed ? BellRingingIcon : BellPlusIcon + return ( <>