) => {
+ const up = (e: React.MouseEvent | React.TouchEvent) => {
e.preventDefault();
if (interval.current) clearTimeout(interval.current);
};
@@ -51,8 +51,10 @@ export default function Connection({
!authState?.connected ? styles.disconnected : styles.progress
)}
disabled={unavailable}
- onMouseDown={mouseDown}
- onMouseUp={mouseUp}
+ onMouseDown={down}
+ onMouseUp={up}
+ onTouchStart={down}
+ onTouchEnd={up}
>
{icon ? icon() : }
diff --git a/src/components/icons/UserIcon.tsx b/src/components/icons/UserIcon.tsx
index 44f56ce..67ac60e 100644
--- a/src/components/icons/UserIcon.tsx
+++ b/src/components/icons/UserIcon.tsx
@@ -1,12 +1,13 @@
import React from "react";
-export default function UserIcon() {
+export default function UserIcon(props: React.SVGProps) {
return (