🚚(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:
committed by
aleb_the_flash
parent
04f7412307
commit
e80b9c2485
@@ -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
|
||||
|
||||
@@ -4,6 +4,6 @@ type State = {
|
||||
enabled: boolean
|
||||
}
|
||||
|
||||
export const ScreenSharePreferenceStore = proxy<State>({
|
||||
export const screenSharePreferenceStore = proxy<State>({
|
||||
enabled: true,
|
||||
})
|
||||
Reference in New Issue
Block a user