♻️(frontend) use keyprefix args
My bad, avoid repeating the same prefix.
This commit is contained in:
committed by
aleb_the_flash
parent
95116f70e8
commit
3ba913bb21
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user