diff --git a/res/css/views/dialogs/_LocationViewDialog.scss b/res/css/views/dialogs/_LocationViewDialog.scss index 23cd50c5879..ed8d30acae9 100644 --- a/res/css/views/dialogs/_LocationViewDialog.scss +++ b/res/css/views/dialogs/_LocationViewDialog.scss @@ -54,4 +54,3 @@ limitations under the License. height: 79vh; } } - diff --git a/src/components/views/location/LocationViewDialog.tsx b/src/components/views/location/LocationViewDialog.tsx index 824531d0473..09992b83fbe 100644 --- a/src/components/views/location/LocationViewDialog.tsx +++ b/src/components/views/location/LocationViewDialog.tsx @@ -18,7 +18,6 @@ import React from 'react'; import { MatrixEvent } from 'matrix-js-sdk/src/models/event'; import { replaceableComponent } from "../../../utils/replaceableComponent"; -import { _t } from '../../../languageHandler'; import BaseDialog from "../dialogs/BaseDialog"; import { IDialogProps } from "../dialogs/IDialogProps"; import { createMap, LocationBodyContent, locationEventGeoUri, parseGeoUri } from '../messages/MLocationBody'; @@ -62,7 +61,7 @@ export default class LocationViewDialog extends React.Component // attribution button as if it were a dialog submit/cancel button. const container: Element = document.getElementById(this.getBodyId()); container.querySelectorAll("button").forEach( - (b: Element) => b.classList.add("mx_Dialog_nonDialogButton") + (b: Element) => b.classList.add("mx_Dialog_nonDialogButton"), ); } diff --git a/src/components/views/messages/MLocationBody.tsx b/src/components/views/messages/MLocationBody.tsx index c8d8c4858c0..bb35b55ae15 100644 --- a/src/components/views/messages/MLocationBody.tsx +++ b/src/components/views/messages/MLocationBody.tsx @@ -68,7 +68,7 @@ export default class MLocationBody extends React.Component { }; private onClick = ( - event: React.MouseEvent + event: React.MouseEvent, ) => { // Don't open map if we clicked the attribution button const target = event.target as Element; @@ -94,7 +94,7 @@ export default class MLocationBody extends React.Component { markerId={this.getMarkerId()} error={this.state.error} onClick={this.onClick} - /> + />; } } @@ -144,14 +144,14 @@ export function createMap( interactive: boolean, bodyId: string, markerId: string, - onError: (error: Error) => void + onError: (error: Error) => void, ): maplibregl.Map { - const style_url = SdkConfig.get().map_style_url; + const styleUrl = SdkConfig.get().map_style_url; const coordinates = new maplibregl.LngLat(coords.longitude, coords.latitude); const map = new maplibregl.Map({ container: bodyId, - style: style_url, + style: styleUrl, center: coordinates, zoom: 13, interactive,