From 7edb0a64999da1f0d2efa7a7f06add6fcfa08c60 Mon Sep 17 00:00:00 2001 From: davidmonterocrespo24 Date: Sun, 10 May 2026 00:16:03 +0200 Subject: [PATCH] fix(editor): add missing useTranslation import in SensorControlPanel Block 9 added `const { t } = useTranslation()` at line 50 but forgot the matching `import { useTranslation } from 'react-i18next'`. The component then crashes the moment a user clicks a sensor on the canvas with `Uncaught ReferenceError: useTranslation is not defined`, taking the whole simulator render tree down. --- frontend/src/components/simulator/SensorControlPanel.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/simulator/SensorControlPanel.tsx b/frontend/src/components/simulator/SensorControlPanel.tsx index 0898c96b..44ccd786 100644 --- a/frontend/src/components/simulator/SensorControlPanel.tsx +++ b/frontend/src/components/simulator/SensorControlPanel.tsx @@ -7,6 +7,7 @@ */ import React, { useEffect, useState } from 'react'; +import { useTranslation } from 'react-i18next'; import { SENSOR_CONTROLS, type SensorControl,