From 32f686a0e693680b0bf03557d8697630ab35bec9 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Tue, 28 Jul 2026 20:23:29 +0200 Subject: [PATCH] Improve `GetNotifiedButton`: dynamically adjust button text based on bookmark state. --- web/components/searches/get-notified-button.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/components/searches/get-notified-button.tsx b/web/components/searches/get-notified-button.tsx index a4ac9e8e..6e0cc773 100644 --- a/web/components/searches/get-notified-button.tsx +++ b/web/components/searches/get-notified-button.tsx @@ -58,6 +58,8 @@ export function GetNotifiedButton(props: { ? t('common.notified_any', 'Get notified for any new profile') : t('common.notified', 'Notify me when this search matches someone') + const buttonText = bookmarked ? label : t('common.get_notified', 'Get notified') + const handleClick = () => { if (bookmarkedSearches.length >= MAX_BOOKMARKED_SEARCHES) { toast.error( @@ -86,7 +88,7 @@ export function GetNotifiedButton(props: { aria-label={label} > - {!iconOnly && (loading ? '' : label)} + {!iconOnly && (loading ? '' : buttonText)} )