mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-27 15:22:56 +08:00
refactor code
This commit is contained in:
parent
f2e4b411b4
commit
120f57544b
@ -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;
|
||||
|
||||
|
@ -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'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'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"
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user