Enable @typescript-eslint/explicit-function-return-type in /src (#9788)
* Enable `@typescript-eslint/explicit-member-accessibility` on /src * Prettier * Enable `@typescript-eslint/explicit-function-return-type` in /src * Fix types * tsc strict fixes * Delint * Fix test * Fix bad merge
This commit is contained in:
committed by
GitHub
parent
7a36ba0fde
commit
030b7e90bf
@@ -21,14 +21,14 @@ import { IEventRelation } from "matrix-js-sdk/src/models/event";
|
||||
|
||||
import { _t } from "../../../languageHandler";
|
||||
import { CollapsibleButton } from "../rooms/CollapsibleButton";
|
||||
import { aboveLeftOf, useContextMenu, AboveLeftOf } from "../../structures/ContextMenu";
|
||||
import { aboveLeftOf, useContextMenu, MenuProps } from "../../structures/ContextMenu";
|
||||
import { OverflowMenuContext } from "../rooms/MessageComposerButtons";
|
||||
import LocationShareMenu from "./LocationShareMenu";
|
||||
|
||||
interface IProps {
|
||||
roomId: string;
|
||||
sender: RoomMember;
|
||||
menuPosition?: AboveLeftOf;
|
||||
menuPosition?: MenuProps;
|
||||
relation?: IEventRelation;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ export const LocationButton: React.FC<IProps> = ({ roomId, sender, menuPosition,
|
||||
const overflowMenuCloser = useContext(OverflowMenuContext);
|
||||
const [menuDisplayed, button, openMenu, closeMenu] = useContextMenu();
|
||||
|
||||
const _onFinished = (ev?: SyntheticEvent) => {
|
||||
const _onFinished = (ev?: SyntheticEvent): void => {
|
||||
closeMenu(ev);
|
||||
overflowMenuCloser?.();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user