From eb81c0318936fa71e6c4477d4c781582d9dafb54 Mon Sep 17 00:00:00 2001 From: Mirko Lenz Date: Sun, 17 Nov 2024 20:22:57 +0100 Subject: [PATCH] chore: clean up unneeded code --- src/global.d.ts | 26 -------------------------- src/index.tsx | 5 ----- src/react-app-env.d.ts | 0 3 files changed, 31 deletions(-) delete mode 100644 src/react-app-env.d.ts diff --git a/src/global.d.ts b/src/global.d.ts index d537bd0..e69de29 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -1,26 +0,0 @@ -declare module "cytoscape-elk" { - import cy from "cytoscape"; - const elk: cy.Ext; - - export interface ElkLayoutOptions extends cy.BaseLayoutOptions { - nodeDimensionsIncludeLabels?: boolean; - fit?: boolean; - padding?: number; - animate?: boolean; - animateFilter?: (node: cy.NodeSingular, i: number) => boolean; - animationDuration?: number; - animationEasing?: number; - transform?: (node: cy.NodeSingular, pos: cy.Position) => cy.Position; - ready?: () => void; - stop?: () => void; - elk?: Record; - priority?: (edge: cy.EdgeSingular) => null | number; - } - - export default elk; -} -declare module "cytoscape-navigator" { - import cy from "cytoscape"; - const nav: cy.Ext; - export default nav; -} diff --git a/src/index.tsx b/src/index.tsx index 0d5d67d..685e448 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -24,11 +24,6 @@ root.render( ); function Layout() { - // https://stackoverflow.com/a/58936230 - // const query = window.matchMedia("(prefers-color-scheme: dark)"); - // const [darkMode, setDarkMode] = useState(query.matches); - // query.addEventListener("change", (e) => setDarkMode(e.matches)); - const darkMode = useMediaQuery("(prefers-color-scheme: dark)"); const isProduction = process.env.NODE_ENV === "production"; diff --git a/src/react-app-env.d.ts b/src/react-app-env.d.ts deleted file mode 100644 index e69de29..0000000