From 6e6f8caca807979be4889a5c1292aa15309a6a3a Mon Sep 17 00:00:00 2001 From: Marco Rodolfi Date: Sat, 27 May 2023 13:55:26 +0200 Subject: Unified translation classes, fixed missing toaster translation and improved the error styling report. --- .../src/components/modals/PluginInstallModal.tsx | 46 +++++++++++++++++----- 1 file changed, 36 insertions(+), 10 deletions(-) (limited to 'frontend/src/components/modals/PluginInstallModal.tsx') diff --git a/frontend/src/components/modals/PluginInstallModal.tsx b/frontend/src/components/modals/PluginInstallModal.tsx index 0e8e3d47..b37dbc65 100644 --- a/frontend/src/components/modals/PluginInstallModal.tsx +++ b/frontend/src/components/modals/PluginInstallModal.tsx @@ -2,7 +2,7 @@ import { ConfirmModal, Navigation, QuickAccessTab } from 'decky-frontend-lib'; import { FC, useState } from 'react'; import { useTranslation } from 'react-i18next'; -import TPluginInstallModal, { TranslatedPart } from './TPluginInstallModal'; +import TranslationHelper, { TranslationClass } from '../../utils/TranslationHelper'; interface PluginInstallModalProps { artifact: string; @@ -39,21 +39,47 @@ const PluginInstallModal: FC = ({ onCancel={async () => { await onCancel(); }} - strTitle={} + strTitle={ +
+ +
+ } strOKButtonText={ loading ? ( - +
+ +
) : ( - +
+ +
) } > - +
+ +
{hash == 'False' && {t('PluginInstallModal.no_hash')}} ); -- cgit v1.2.3