From fab00a4abb243175b1ef46da6b98202bd5ab54d3 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Tue, 26 Dec 2023 11:43:39 -0800 Subject: [PATCH] Update alert text to match button text --- .../src/components/Main/SuggestionAlertMainPage.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/packages_rs/nextclade-web/src/components/Main/SuggestionAlertMainPage.tsx b/packages_rs/nextclade-web/src/components/Main/SuggestionAlertMainPage.tsx index 7b47b6d81..26f30aab0 100644 --- a/packages_rs/nextclade-web/src/components/Main/SuggestionAlertMainPage.tsx +++ b/packages_rs/nextclade-web/src/components/Main/SuggestionAlertMainPage.tsx @@ -32,14 +32,14 @@ export function SuggestionAlertMainPage({ ...restProps }) { if (!hasMatch && numSuggestions > 0) { let text = t( 'Currently selected dataset does not seem to match your sequences, ' + - 'but there are {{ n }} other datasets which might. Click "Change dataset" to see the list.', + 'but there are {{ n }} other datasets which might. Click "Change reference dataset" to see the list.', { n: numSuggestions }, ) if (numSuggestions === 1) { text = t( 'Currently selected dataset does not seem to match your sequences, ' + - 'but there is 1 dataset which might. Click "Change dataset" to see the list.', + 'but there is 1 dataset which might. Click "Change reference dataset" to see the list.', ) } @@ -57,9 +57,12 @@ export function SuggestionAlertMainPage({ ...restProps }) {
{t('Multiple matching datasets.')}

- {t('{{ n }} datasets appear to match your sequences. Click "Change dataset" to see the list.', { - n: numSuggestions, - })} + {t( + '{{ n }} datasets appear to match your sequences. Click "Change reference dataset" to see the list.', + { + n: numSuggestions, + }, + )}

)