refactor code

This commit is contained in:
AykutSarac 2022-08-09 16:44:10 +03:00
parent f2e4b411b4
commit 120f57544b
3 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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"

View File

@ -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;
};