mirror of
https://github.com/Snigdha-OS/snigdhaos-web-dev.git
synced 2025-09-07 05:25:11 +02:00
🐛 fix(_warning): removed unused libs and fns
This commit is contained in:
@@ -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">
|
||||||
|
Reference in New Issue
Block a user