Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

refactor

AykutSarac36af69b07693
diff --git a/src/components/Modal/index.tsx b/src/components/Modal/index.tsx
index 7de5ce2f..a219ab0b 100644
--- a/src/components/Modal/index.tsx
+++ b/src/components/Modal/index.tsx
@@ -1,13 +1,14 @@
import React from "react";
import { Button } from "src/components/Button";
import useKeyPress from "src/hooks/useKeyPress";
-import { ReactComponent } from "src/typings/global";
import * as Styled from "./styles";
type ControlProps = React.PropsWithChildren<{
setVisible: (status: boolean) => void;
}>;
+export type ReactComponent = React.FC<React.PropsWithChildren<{}>>;
+
type ModalTypes = {
Header: ReactComponent;
Content: ReactComponent;
diff --git a/src/typings/global.ts b/src/typings/global.ts
deleted file mode 100644
index e311e0f7..00000000
--- a/src/typings/global.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import React, { PropsWithChildren } from "react";
-
-export type ReactComponent = React.FC<PropsWithChildren<{}>>;