🐛 fix(_warning): removed unused libs and fns

This commit is contained in:
Eshan Roy
2024-12-08 00:30:12 +05:30
parent 1aeedee817
commit 049f3beeff

View File

@@ -1,9 +1,9 @@
import React, { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import { Github, Gitlab } from 'lucide-react'; import { Github } from 'lucide-react';
export function Footer() { export function Footer() {
const [githubFollowers, setGithubFollowers] = useState<number | null>(null); const [githubFollowers, setGithubFollowers] = useState<number | null>(null);
const [gitlabFollowers, setGitlabFollowers] = useState<number | null>(null); // const [gitlabFollowers, setGitlabFollowers] = useState<number | null>(null);
// Fetch GitHub follower count // Fetch GitHub follower count
useEffect(() => { useEffect(() => {
@@ -18,16 +18,16 @@ export function Footer() {
}, []); }, []);
// Fetch GitLab follower count // Fetch GitLab follower count
useEffect(() => { // useEffect(() => {
async function fetchGitlabFollowers() { // async function fetchGitlabFollowers() {
const response = await fetch('https://gitlab.com/api/v4/users/Snigdha-OS'); // const response = await fetch('https://gitlab.com/api/v4/users/Snigdha-OS');
const data = await response.json(); // const data = await response.json();
if (data[0]?.followers_count !== undefined) { // if (data[0]?.followers_count !== undefined) {
setGitlabFollowers(data[0].followers_count); // setGitlabFollowers(data[0].followers_count);
} // }
} // }
fetchGitlabFollowers(); // fetchGitlabFollowers();
}, []); // }, []);
return ( return (
<footer className="bg-gradient-to-r from-gray-900 via-gray-800 to-gray-900 text-white py-10"> <footer className="bg-gradient-to-r from-gray-900 via-gray-800 to-gray-900 text-white py-10">