diff --git a/src/frontend/src/features/rooms/livekit/components/controls/Device/PermissionNeededButton.tsx b/src/frontend/src/features/rooms/livekit/components/controls/Device/PermissionNeededButton.tsx index 0641ae80..388af375 100644 --- a/src/frontend/src/features/rooms/livekit/components/controls/Device/PermissionNeededButton.tsx +++ b/src/frontend/src/features/rooms/livekit/components/controls/Device/PermissionNeededButton.tsx @@ -5,16 +5,18 @@ import { css } from '@/styled-system/css' import { useTranslation } from 'react-i18next' type PermissionNeededButtonProps = { - tooltip?: string - onPress?: () => void + tooltip?: string | null + onPress?: (() => void) | null + ariaLabel?: string } export const PermissionNeededButton = ({ tooltip, onPress, + ariaLabel, }: PermissionNeededButtonProps) => { const { t } = useTranslation('rooms', { keyPrefix: 'permissionsButton' }) - const label = tooltip ?? t('tooltip') + const label = tooltip === undefined ? t('tooltip') : tooltip return (