Fix React contexts (#12855)

This commit is contained in:
Michael Telatynski
2024-08-01 13:01:05 +01:00
committed by GitHub
parent 9b77279b3e
commit b6addb4118
35 changed files with 99 additions and 107 deletions

View File

@@ -55,8 +55,8 @@ class LocationPicker extends React.Component<ILocationPickerProps, IState> {
private geolocate?: maplibregl.GeolocateControl;
private marker?: maplibregl.Marker;
public constructor(props: ILocationPickerProps) {
super(props);
public constructor(props: ILocationPickerProps, context: React.ContextType<typeof MatrixClientContext>) {
super(props, context);
this.state = {
position: undefined,