Add displayName to contexts (#8814)
This commit is contained in:
@@ -15,6 +15,7 @@ const Context = React.createContext<{
|
||||
setActiveView: (viewId: string) => void
|
||||
sendViewPosition: (viewId: string, y: number) => void
|
||||
} | null>(null)
|
||||
Context.displayName = 'ActiveVideoWebContext'
|
||||
|
||||
export function Provider({children}: {children: React.ReactNode}) {
|
||||
if (!isWeb) {
|
||||
|
||||
@@ -8,6 +8,7 @@ const Context = React.createContext<{
|
||||
volume: number
|
||||
setVolume: React.Dispatch<React.SetStateAction<number>>
|
||||
} | null>(null)
|
||||
Context.displayName = 'VideoVolumeContext'
|
||||
|
||||
export function Provider({children}: {children: React.ReactNode}) {
|
||||
const [muted, setMuted] = React.useState(true)
|
||||
|
||||
@@ -125,6 +125,7 @@ export function VideoEmbed({
|
||||
}
|
||||
|
||||
const NearScreenContext = createContext(false)
|
||||
NearScreenContext.displayName = 'VideoNearScreenContext'
|
||||
|
||||
/**
|
||||
* Renders a 100vh tall div and watches it with an IntersectionObserver to
|
||||
|
||||
Reference in New Issue
Block a user