♻️(frontend) use keyprefix args

My bad, avoid repeating the same prefix.
This commit is contained in:
lebaudantoine
2024-09-16 11:28:26 +02:00
committed by aleb_the_flash
parent 95116f70e8
commit 3ba913bb21

View File

@@ -66,7 +66,7 @@ export function ControlBar({
onDeviceError,
...props
}: ControlBarProps) {
const { t } = useTranslation('rooms')
const { t } = useTranslation('rooms', { keyPrefix: 'controls' })
const [isChatOpen, setIsChatOpen] = React.useState(false)
const layoutContext = useMaybeLayoutContext()
React.useEffect(() => {
@@ -156,11 +156,7 @@ export function ControlBar({
}
>
{showText &&
t(
isScreenShareEnabled
? 'controls.stopScreenShare'
: 'controls.shareScreen'
)}
t(isScreenShareEnabled ? 'stopScreenShare' : 'shareScreen')}
</TrackToggle>
)}
<HandToggle />