From c0783960c01a0927b12a1175cd886e264f6787f8 Mon Sep 17 00:00:00 2001 From: Ian Krieger Date: Thu, 21 Sep 2023 11:35:17 -0400 Subject: [PATCH] fix: move document get down to lowest level --- src/user/reporting/ReportMenu.tsx | 5 +- src/user/reporting/csv.library.tsx | 120 ++++++++++++++--------------- src/util/uInt8Array.ts | 4 - 3 files changed, 61 insertions(+), 68 deletions(-) delete mode 100644 src/util/uInt8Array.ts diff --git a/src/user/reporting/ReportMenu.tsx b/src/user/reporting/ReportMenu.tsx index d8de026e..c9fdd45a 100644 --- a/src/user/reporting/ReportMenu.tsx +++ b/src/user/reporting/ReportMenu.tsx @@ -18,7 +18,6 @@ import { import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown"; import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp"; import DownloadIcon from "@mui/icons-material/Download"; -import { uInt8Array } from "util/uInt8Array"; interface ReportMenuProps { hasVerifiedConversions: boolean; @@ -32,8 +31,6 @@ export const ReportMenu = ({ const [isError, setIsError] = useState(false); const set = (s: string) => document.getElementById("private-key")?.setAttribute("value", s); - const get = () => - document.getElementById("private-key")?.getAttribute("value"); const { download, loading, error } = useDownloadCSV({ onComplete() { setAnchorEl(null); @@ -134,7 +131,7 @@ export const ReportMenu = ({