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 code

AykutSarac120f57544bbc
diff --git a/src/components/Sponsors/index.tsx b/src/components/Sponsors/index.tsx
index 1393b65f..6d3c8e3f 100644
--- a/src/components/Sponsors/index.tsx
+++ b/src/components/Sponsors/index.tsx
@@ -77,7 +77,7 @@ export const Sponsors = () => {
if (!sponsors?.nextDate || sponsors?.nextDate < Date.now()) {
getSponsors().then(setSponsors);
}
- }, []);
+ }, [setSponsors, sponsors?.nextDate]);
if (!sponsors?.users?.length) return null;
diff --git a/src/containers/Modals/GoalsModal/index.tsx b/src/containers/Modals/GoalsModal/index.tsx
index 95b9a150..3c796dcb 100644
--- a/src/containers/Modals/GoalsModal/index.tsx
+++ b/src/containers/Modals/GoalsModal/index.tsx
@@ -1,5 +1,5 @@
-import { useRouter } from "next/router";
import React from "react";
+import { useRouter } from "next/router";
import { FaHeart, FaTwitter } from "react-icons/fa";
import { Button } from "src/components/Button";
import { Modal } from "src/components/Modal";
@@ -38,12 +38,12 @@ export const GoalsModal = ({ visible, setVisible }) => {
return (
<Modal visible={visible} setVisible={setVisible}>
- <Modal.Header>Help JSON Visio's Goals</Modal.Header>
+ <Modal.Header>Help JSON Visio&apos;s Goals</Modal.Header>
<Modal.Content>
<StyledTitle>OUR GOAL</StyledTitle>
- <b>JSON Visio's Goal</b> is to keep the service completely free and open
- source for everyone! For the contiunity of our service and keep the new
- updates coming we need your support to make that possible ❤️
+ <b>JSON Visio&apos;s Goal</b> is to keep the service completely free and
+ open source for everyone! For the contiunity of our service and keep the
+ new updates coming we need your support to make that possible ❤️
<ButtonsWrapper>
<Button
status="DANGER"
diff --git a/src/hooks/useFocusNode.tsx b/src/hooks/useFocusNode.tsx
index b63c4ef4..e7e9455f 100644
--- a/src/hooks/useFocusNode.tsx
+++ b/src/hooks/useFocusNode.tsx
@@ -61,7 +61,7 @@ export const useFocusNode = () => {
return () => {
if (!content.value) setSelectedNode(0);
};
- }, [content.debounced, zoomPanPinch, selectedNode, setSelectedNode]);
+ }, [content.debounced, content.value, selectedNode, zoomPanPinch]);
return [content, setContent, skip] as const;
};