From 120f57544bbce4bf67015f975f5c35f7c60f56c0 Mon Sep 17 00:00:00 2001 From: AykutSarac Date: Tue, 9 Aug 2022 16:44:10 +0300 Subject: [PATCH] refactor code --- src/components/Sponsors/index.tsx | 2 +- src/containers/Modals/GoalsModal/index.tsx | 10 +++++----- src/hooks/useFocusNode.tsx | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/Sponsors/index.tsx b/src/components/Sponsors/index.tsx index 1393b65..6d3c8e3 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 95b9a15..3c796dc 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 ( - Help JSON Visio's Goals + Help JSON Visio's Goals OUR GOAL - JSON Visio's Goal 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 ❤️ + JSON Visio's Goal 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 ❤️