Open source video conferencing app powered by LiveKit. Built with Django and React.
🚚(frontend) rename screenshare preference store for naming consistency
lebaudantoinee80b9c248525
diff --git a/src/frontend/src/features/rooms/livekit/components/FullScreenShareWarning.tsx b/src/frontend/src/features/rooms/livekit/components/FullScreenShareWarning.tsxindex decdb784..952b7885 100644--- a/src/frontend/src/features/rooms/livekit/components/FullScreenShareWarning.tsx+++ b/src/frontend/src/features/rooms/livekit/components/FullScreenShareWarning.tsx@@ -1,7 +1,7 @@import { css } from '@/styled-system/css'import { Button, Text } from '@/primitives'import { useMemo, useRef } from 'react'-import { ScreenSharePreferenceStore } from '@/stores/ScreenSharePreferences'+import { screenSharePreferenceStore } from '@/stores/screenSharePreferences'import { useSnapshot } from 'valtio'import { useLocalParticipant } from '@livekit/components-react'import { useSize } from '../hooks/useResizeObserver'@@ -18,7 +18,7 @@ export const FullScreenShareWarning = ({const warningContainerRef = useRef<HTMLDivElement>(null)const { width: containerWidth } = useSize(warningContainerRef)const { localParticipant } = useLocalParticipant()- const screenSharePreferences = useSnapshot(ScreenSharePreferenceStore)+ const screenSharePreferences = useSnapshot(screenSharePreferenceStore)const isFullScreenSharing = useMemo(() => {if (trackReference?.source !== 'screen_share') return false@@ -62,7 +62,7 @@ export const FullScreenShareWarning = ({}const handleDismissWarning = () => {- ScreenSharePreferenceStore.enabled = false+ screenSharePreferenceStore.enabled = false}if (!shouldShowWarning) return nulldiff --git a/src/frontend/src/stores/ScreenSharePreferences.ts b/src/frontend/src/stores/screenSharePreferences.tssimilarity index 60%rename from src/frontend/src/stores/ScreenSharePreferences.tsrename to src/frontend/src/stores/screenSharePreferences.tsindex 1c2bba23..addb999d 100644--- a/src/frontend/src/stores/ScreenSharePreferences.ts+++ b/src/frontend/src/stores/screenSharePreferences.ts@@ -4,6 +4,6 @@ type State = {enabled: boolean}-export const ScreenSharePreferenceStore = proxy<State>({+export const screenSharePreferenceStore = proxy<State>({enabled: true,})