typescript src/room (#437)

This commit is contained in:
Timo
2022-08-02 00:46:16 +02:00
committed by GitHub
parent c723fae0e2
commit 2d99acabe2
37 changed files with 465 additions and 284 deletions

View File

@@ -24,6 +24,7 @@ import React, {
useMemo,
useContext,
createContext,
ReactNode,
} from "react";
export interface MediaHandlerContextInterface {
@@ -73,7 +74,7 @@ function updateMediaPreferences(newPreferences: MediaPreferences): void {
}
interface Props {
client: MatrixClient;
children: JSX.Element[];
children: ReactNode;
}
export function MediaHandlerProvider({ client, children }: Props): JSX.Element {
const [