Skip to content

Commit

Permalink
🐛 fix(_warning): removed unused libs and fns
Browse files Browse the repository at this point in the history
  • Loading branch information
eshanized committed Dec 7, 2024
1 parent 1aeedee commit 049f3be
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
@@ -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<number | null>(null);
const [gitlabFollowers, setGitlabFollowers] = useState<number | null>(null);
// const [gitlabFollowers, setGitlabFollowers] = useState<number | null>(null);

// Fetch GitHub follower count
useEffect(() => {
Expand All @@ -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 (
<footer className="bg-gradient-to-r from-gray-900 via-gray-800 to-gray-900 text-white py-10">
Expand Down

0 comments on commit 049f3be

Please sign in to comment.