From 3868f3e8506aff19e3e4d261b5d5fb48971dbb3a Mon Sep 17 00:00:00 2001 From: Alexandre Bourdin Date: Wed, 22 Jun 2022 11:34:42 +0200 Subject: [PATCH] Merge pull request #8532 from overleaf/ta-dictionary-release Prepare Dictionary Edit Feature for Release GitOrigin-RevId: 1f17143c5aa89ec7a87c2fd0d35f1de4caabf33b --- .../components/dictionary-modal-content.tsx | 3 ++- .../js/shared/components/beta-badge.tsx | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/services/web/frontend/js/features/dictionary/components/dictionary-modal-content.tsx b/services/web/frontend/js/features/dictionary/components/dictionary-modal-content.tsx index c821730bd4..2688f2e80d 100644 --- a/services/web/frontend/js/features/dictionary/components/dictionary-modal-content.tsx +++ b/services/web/frontend/js/features/dictionary/components/dictionary-modal-content.tsx @@ -42,7 +42,7 @@ export default function DictionaryModalContent({ className: 'tooltip-wide', text: ( <> - We are beta testing the dictionary manager. + We are testing the dictionary manager.
Click to give feedback @@ -58,6 +58,7 @@ export default function DictionaryModalContent({ diff --git a/services/web/frontend/js/shared/components/beta-badge.tsx b/services/web/frontend/js/shared/components/beta-badge.tsx index aa4b84277c..87c9305a8c 100644 --- a/services/web/frontend/js/shared/components/beta-badge.tsx +++ b/services/web/frontend/js/shared/components/beta-badge.tsx @@ -11,9 +11,23 @@ type TooltipProps = { type BetaBadgeProps = { tooltip: TooltipProps url?: string + phase?: string } -function BetaBadge({ tooltip, url = '/beta/participate' }: BetaBadgeProps) { +function BetaBadge({ + tooltip, + url = '/beta/participate', + phase = 'beta', +}: BetaBadgeProps) { + let badgeClass + switch (phase) { + case 'release': + badgeClass = 'info-badge' + break + default: + badgeClass = 'beta-badge' + } + return ( {tooltip.text}