Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed Jan 5, 2022
1 parent 84990c5 commit e3fc6a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion res/css/views/dialogs/_LocationViewDialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,3 @@ limitations under the License.
height: 79vh;
}
}

3 changes: 1 addition & 2 deletions src/components/views/location/LocationViewDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -62,7 +61,7 @@ export default class LocationViewDialog extends React.Component<IProps, IState>
// 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"),
);
}

Expand Down
10 changes: 5 additions & 5 deletions src/components/views/messages/MLocationBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class MLocationBody extends React.Component<IBodyProps, IState> {
};

private onClick = (
event: React.MouseEvent<HTMLDivElement, MouseEvent>
event: React.MouseEvent<HTMLDivElement, MouseEvent>,
) => {
// Don't open map if we clicked the attribution button
const target = event.target as Element;
Expand All @@ -94,7 +94,7 @@ export default class MLocationBody extends React.Component<IBodyProps, IState> {
markerId={this.getMarkerId()}
error={this.state.error}
onClick={this.onClick}
/>
/>;
}
}

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e3fc6a2

Please sign in to comment.