mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-10 21:55:19 +00:00
Drop the unused root element provider
RootElementProvider was exported but never used: nothing supplies a root element, so every consumer falls back to the document body. Knip reports it, which is what is failing CI. M1 adds a provider back along with the component that mounts Element Call into a container. Until then there is nothing to provide.
This commit is contained in:
@@ -24,10 +24,11 @@ import { createContext, use } from "react";
|
|||||||
* be decorated correctly and styled incorrectly, silently. Until those are
|
* be decorated correctly and styled incorrectly, silently. Until those are
|
||||||
* scoped, treat this as preparation rather than a working seam.
|
* scoped, treat this as preparation rather than a working seam.
|
||||||
*/
|
*/
|
||||||
|
// No provider is exported yet: nothing supplies a root element, so every
|
||||||
|
// consumer falls back to the document body. M1 adds one along with the
|
||||||
|
// component that mounts Element Call into a container.
|
||||||
const RootElementContext = createContext<HTMLElement | null>(null);
|
const RootElementContext = createContext<HTMLElement | null>(null);
|
||||||
|
|
||||||
export const RootElementProvider = RootElementContext.Provider;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The element Element Call should decorate and portal into.
|
* The element Element Call should decorate and portal into.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user