From a7ff2b8cb477a81024542a62e4e5fff08fc7e0a4 Mon Sep 17 00:00:00 2001 From: Space-Banane Date: Sat, 24 Jan 2026 11:47:37 +0100 Subject: [PATCH] Remove unused getLastCommitDate function and clean up imports in App component --- src/App.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 129f7e6..2d83b35 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,4 +1,4 @@ -import { useEffect, useState, useRef } from "react"; +import { useEffect, useState} from "react"; interface MiniProject { title: string; @@ -490,17 +490,17 @@ function ProjectCard({ project }: { project: Project }) { ); } -async function getLastCommitDate(url: string) { - const response = await fetch("https://shsf-api.reversed.dev/api/exec/6/c04c873c-6b75-4733-8636-bdaa962701c5", { - method: "POST", - headers: { - "Content-Type": "application/json", - }, - body: JSON.stringify({ url: url }), - }); - const data = await response.json(); - return new Date(data.date); -} +// async function getLastCommitDate(url: string) { +// const response = await fetch("https://shsf-api.reversed.dev/api/exec/6/c04c873c-6b75-4733-8636-bdaa962701c5", { +// method: "POST", +// headers: { +// "Content-Type": "application/json", +// }, +// body: JSON.stringify({ url: url }), +// }); +// const data = await response.json(); +// return new Date(data.date); +// } function App() { const [status, setStatus] = useState("");