🚚(frontend) rename screenshare preference store for naming consistency

Update screenshare preference store name to follow established naming
convention used across other preference stores.
This commit is contained in:
lebaudantoine
2025-08-22 12:39:07 +02:00
committed by aleb_the_flash
parent 04f7412307
commit e80b9c2485
2 changed files with 4 additions and 4 deletions

View File

@@ -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 null

View File

@@ -4,6 +4,6 @@ type State = {
enabled: boolean
}
export const ScreenSharePreferenceStore = proxy<State>({
export const screenSharePreferenceStore = proxy<State>({
enabled: true,
})