From 94e0928c43ae9a8be355585413879a5479c80268 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Mon, 6 Jan 2025 12:14:57 +1100 Subject: [PATCH] chore: rename StyledI18nSubText to I18nSubText because it is not directly a styled. element --- tools/localization/regex.py | 2 +- .../basic/{StyledI18nSubText.tsx => I18nSubText.tsx} | 2 +- ts/components/dialog/OpenUrlModal.tsx | 4 ++-- ts/components/dialog/QuitModal.tsx | 7 ++----- ts/components/dialog/SessionConfirm.tsx | 4 ++-- 5 files changed, 8 insertions(+), 11 deletions(-) rename ts/components/basic/{StyledI18nSubText.tsx => I18nSubText.tsx} (96%) diff --git a/tools/localization/regex.py b/tools/localization/regex.py index 1be444ffe7..4da06bf6c6 100644 --- a/tools/localization/regex.py +++ b/tools/localization/regex.py @@ -18,7 +18,7 @@ def get_localization_regex_list(string): fr"i18n\('{key}'(, {{[\S\s.]*}})?\)", fr"i18n\.(stripped|inEnglish|getRawMessage)\('{key}'(, {{[\S\s.]*}})?\)", fr"window\?\.i18n\?\.\('{key}'(, {{[\S\s.]*}})?\)", - fr"
- diff --git a/ts/components/dialog/QuitModal.tsx b/ts/components/dialog/QuitModal.tsx index 6ea33fb926..50852ff8f0 100644 --- a/ts/components/dialog/QuitModal.tsx +++ b/ts/components/dialog/QuitModal.tsx @@ -8,7 +8,7 @@ import { Flex } from '../basic/Flex'; import { SessionButton, SessionButtonColor, SessionButtonType } from '../basic/SessionButton'; import { SpacerLG, SpacerSM } from '../basic/Text'; import { SessionConfirmDialogProps } from './SessionConfirm'; -import { StyledI18nSubText } from '../basic/StyledI18nSubText'; +import { I18nSubText } from '../basic/I18nSubText'; const modalStyle: CSSProperties = { maxWidth: '300px', @@ -85,10 +85,7 @@ export const QuitModal = (props: SessionConfirmDialogProps) => { style={modalStyle} > - + ) : null} diff --git a/ts/components/dialog/SessionConfirm.tsx b/ts/components/dialog/SessionConfirm.tsx index 04aa99c75e..ac495f9120 100644 --- a/ts/components/dialog/SessionConfirm.tsx +++ b/ts/components/dialog/SessionConfirm.tsx @@ -12,7 +12,7 @@ import { SpacerLG } from '../basic/Text'; import { SessionSpinner } from '../loading'; import type { LocalizerComponentPropsObject } from '../../types/localizer'; -import { StyledI18nSubText } from '../basic/StyledI18nSubText'; +import { I18nSubText } from '../basic/I18nSubText'; export interface SessionConfirmDialogProps { i18nMessage?: LocalizerComponentPropsObject; @@ -132,7 +132,7 @@ export const SessionConfirm = (props: SessionConfirmDialogProps) => {
{i18nMessage ? ( - + ) : null} {radioOptions && chosenOption !== '' ? (