mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-31 20:58:03 +00:00
🩹(frontend) disable subtitle settings when feature is unavailable
Hide or disable settings related to the subtitle feature when the feature flag is not enabled.
This commit is contained in:
committed by
aleb_the_flash
parent
ea1c90d8ca
commit
c65ff2d75d
@@ -10,6 +10,7 @@ import {
|
|||||||
CAPTION_TEXT_SIZE_OPTIONS,
|
CAPTION_TEXT_SIZE_OPTIONS,
|
||||||
CAPTION_COLOR_OPTIONS,
|
CAPTION_COLOR_OPTIONS,
|
||||||
} from '@/stores/accessibility'
|
} from '@/stores/accessibility'
|
||||||
|
import { useAreSubtitlesAvailable } from '../hooks/useAreSubtitlesAvailable'
|
||||||
|
|
||||||
export const CaptionsSettings = () => {
|
export const CaptionsSettings = () => {
|
||||||
const { t } = useTranslation('settings', {
|
const { t } = useTranslation('settings', {
|
||||||
@@ -44,6 +45,9 @@ export const CaptionsSettings = () => {
|
|||||||
[t]
|
[t]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const areSubtitlesAvailable = useAreSubtitlesAvailable()
|
||||||
|
if (!areSubtitlesAvailable) return null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<li>
|
<li>
|
||||||
<H
|
<H
|
||||||
|
|||||||
Reference in New Issue
Block a user