From c631d40aa3c0a66005cb9ff48aa7b314a822d70b Mon Sep 17 00:00:00 2001 From: Marco Rodolfi Date: Tue, 30 May 2023 19:32:41 +0200 Subject: Missed a toaster for the react tools --- frontend/src/developer.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'frontend/src/developer.tsx') diff --git a/frontend/src/developer.tsx b/frontend/src/developer.tsx index 30b8cf91..b7b7c278 100644 --- a/frontend/src/developer.tsx +++ b/frontend/src/developer.tsx @@ -4,6 +4,7 @@ import { FaReact } from 'react-icons/fa'; import Logger from './logger'; import { getSetting } from './utils/settings'; +import TranslationHelper, { TranslationClass } from './utils/TranslationHelper'; const logger = new Logger('DeveloperMode'); @@ -40,11 +41,13 @@ export async function setShowValveInternal(show: boolean) { } export async function setShouldConnectToReactDevTools(enable: boolean) { - const { t } = useTranslation(); - window.DeckyPluginLoader.toaster.toast({ - title: (enable ? t('Developer.enabling') : t('Developer.disabling')) + ' React DevTools', - body: t('Developer.5secreload'), + title: enable ? ( + + ) : ( + + ), + body: , icon: , }); await sleep(5000); -- cgit v1.2.3