diff --git a/src/components/dropDown/ControlPanelDropDown.tsx b/src/components/dropDown/ControlPanelDropDown.tsx index 15d0e0e4..d3c1dbdd 100644 --- a/src/components/dropDown/ControlPanelDropDown.tsx +++ b/src/components/dropDown/ControlPanelDropDown.tsx @@ -1,6 +1,7 @@ -import { useEffect, useState } from 'react'; +import { useState } from 'react'; import DropDown from './DropDown'; import useEffectNotOnMount from '../../hooks/utils/useEffectNotOnMount'; +import { useTranslate } from '../../i18n/useTranslate'; type ControlPanelDropDown = { options: { option: string; available: boolean; id: string }[]; @@ -19,6 +20,7 @@ export default function ControlPanelDropDown({ (id: string) => options.find((option) => option.id === id)?.option || id ) ); + const t = useTranslate(); useEffectNotOnMount(() => { const mappedIds = selected?.map( @@ -43,8 +45,8 @@ export default function ControlPanelDropDown({