diff --git a/src/components/views/rooms/Stickerpicker.tsx b/src/components/views/rooms/Stickerpicker.tsx index 1cd39999dc..6793f90159 100644 --- a/src/components/views/rooms/Stickerpicker.tsx +++ b/src/components/views/rooms/Stickerpicker.tsx @@ -26,7 +26,6 @@ import ScalarAuthClient from "../../../ScalarAuthClient"; import GenericElementContextMenu from "../context_menus/GenericElementContextMenu"; import RightPanelStore from "../../../stores/right-panel/RightPanelStore"; import { UPDATE_EVENT } from "../../../stores/AsyncStore"; -import StickerpackPlaceholderSvg from "../../../../res/img/stickerpack-placeholder.png"; // This should be below the dialog level (4000), but above the rest of the UI (1000-2000). // We sit in a context menu, so this should be given to the context menu. @@ -203,11 +202,13 @@ export default class Stickerpicker extends React.PureComponent { }; private defaultStickerpickerContent(): JSX.Element { + // eslint-disable-next-line @typescript-eslint/no-require-imports + const imgSrc = require("../../../../res/img/stickerpack-placeholder.png"); return (

{_t("stickers|empty")}

{_t("stickers|empty_add_prompt")}

- +
); } diff --git a/test/unit-tests/utils/local-room-test.ts b/test/unit-tests/utils/local-room-test.ts index 1621f137e3..2789bf65a3 100644 --- a/test/unit-tests/utils/local-room-test.ts +++ b/test/unit-tests/utils/local-room-test.ts @@ -76,7 +76,7 @@ describe("local-room", () => { it("should resolve the promise after invoking the callback", async () => { localRoom.afterCreateCallbacks.forEach((callback) => { - callback(localRoom.actualRoomId); + callback(localRoom.actualRoomId!); }); await prom; });