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.
This commit is contained in:
davidmonterocrespo24 2026-05-10 00:16:03 +02:00
parent 4a04c5c7c7
commit 7edb0a6499
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@
*/ */
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { import {
SENSOR_CONTROLS, SENSOR_CONTROLS,
type SensorControl, type SensorControl,