fix eslint warnings
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { useEffect, useRef, WheelEvent, LegacyRef } from "react";
|
||||
import { useEffect, useRef, LegacyRef } from "react";
|
||||
|
||||
function useHorizontalScroll() {
|
||||
const elRef = useRef<HTMLDivElement>();
|
||||
@ -10,9 +10,7 @@ function useHorizontalScroll() {
|
||||
ev.preventDefault();
|
||||
el.scrollTo({ left: el.scrollLeft + ev.deltaY, behavior: "smooth" });
|
||||
};
|
||||
// @ts-ignore
|
||||
el.addEventListener("wheel", onWheel);
|
||||
// @ts-ignore
|
||||
return () => el.removeEventListener("wheel", onWheel);
|
||||
}
|
||||
}, []);
|
||||
|
@ -5,7 +5,7 @@ declare global {
|
||||
webln?: {
|
||||
enabled: boolean;
|
||||
enable: () => Promise<void>;
|
||||
sendPayment: (pr: string) => Promise<any>;
|
||||
sendPayment: (pr: string) => Promise<unknown>;
|
||||
};
|
||||
}
|
||||
}
|
||||
@ -15,7 +15,7 @@ export default function useWebln(enable = true) {
|
||||
|
||||
useEffect(() => {
|
||||
if (maybeWebLn && !maybeWebLn.enabled && enable) {
|
||||
maybeWebLn.enable().catch((error) => {
|
||||
maybeWebLn.enable().catch(() => {
|
||||
console.debug("Couldn't enable WebLN");
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user