From f3ad3fce2a6a787d1423d122ad8db66b552bf3f0 Mon Sep 17 00:00:00 2001 From: Adam Coddington Date: Sat, 30 Mar 2024 13:23:58 -0700 Subject: [PATCH] Working around some typing bugs in react-draggable (see https://github.com/react-grid-layout/react-draggable/issues/652). --- src/popup.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/popup.tsx b/src/popup.tsx index 677e12c..61c35bd 100644 --- a/src/popup.tsx +++ b/src/popup.tsx @@ -15,7 +15,7 @@ import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; import MaterialAlert from "@mui/material/Alert"; import createCache from "@emotion/cache"; import { CacheProvider } from "@emotion/react"; -import Draggable from "react-draggable"; +import { default as DraggableRaw, DraggableProps } from "react-draggable"; import SendIcon from "@mui/icons-material/SaveAlt"; @@ -55,6 +55,8 @@ import MentionNotice from "./components/MentionNotice"; import { LinearProgress, NativeSelect, Paper } from "@mui/material"; import MouseOverChip from "./components/MouseOverChip"; +const Draggable: any = DraggableRaw; + declare const BUILD_ID: string; declare global { interface Window {