From 049f3beeffe3e775221e07f81844e66cdafb9906 Mon Sep 17 00:00:00 2001 From: Eshan Roy Date: Sun, 8 Dec 2024 00:30:12 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(=5Fwarning):=20removed=20unu?= =?UTF-8?q?sed=20libs=20and=20fns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout/Footer.tsx | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index e3feb64..b2283d1 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -1,9 +1,9 @@ -import React, { useEffect, useState } from 'react'; -import { Github, Gitlab } from 'lucide-react'; +import { useEffect, useState } from 'react'; +import { Github } from 'lucide-react'; export function Footer() { const [githubFollowers, setGithubFollowers] = useState(null); - const [gitlabFollowers, setGitlabFollowers] = useState(null); + // const [gitlabFollowers, setGitlabFollowers] = useState(null); // Fetch GitHub follower count useEffect(() => { @@ -18,16 +18,16 @@ export function Footer() { }, []); // Fetch GitLab follower count - useEffect(() => { - async function fetchGitlabFollowers() { - const response = await fetch('https://gitlab.com/api/v4/users/Snigdha-OS'); - const data = await response.json(); - if (data[0]?.followers_count !== undefined) { - setGitlabFollowers(data[0].followers_count); - } - } - fetchGitlabFollowers(); - }, []); + // useEffect(() => { + // async function fetchGitlabFollowers() { + // const response = await fetch('https://gitlab.com/api/v4/users/Snigdha-OS'); + // const data = await response.json(); + // if (data[0]?.followers_count !== undefined) { + // setGitlabFollowers(data[0].followers_count); + // } + // } + // fetchGitlabFollowers(); + // }, []); return (