Remove unused getLastCommitDate function and clean up imports in App component

This commit is contained in:
Space-Banane
2026-01-24 11:47:37 +01:00
parent f6513286ec
commit a7ff2b8cb4

View File

@@ -1,4 +1,4 @@
import { useEffect, useState, useRef } from "react"; import { useEffect, useState} from "react";
interface MiniProject { interface MiniProject {
title: string; title: string;
@@ -490,17 +490,17 @@ function ProjectCard({ project }: { project: Project }) {
); );
} }
async function getLastCommitDate(url: string) { // async function getLastCommitDate(url: string) {
const response = await fetch("https://shsf-api.reversed.dev/api/exec/6/c04c873c-6b75-4733-8636-bdaa962701c5", { // const response = await fetch("https://shsf-api.reversed.dev/api/exec/6/c04c873c-6b75-4733-8636-bdaa962701c5", {
method: "POST", // method: "POST",
headers: { // headers: {
"Content-Type": "application/json", // "Content-Type": "application/json",
}, // },
body: JSON.stringify({ url: url }), // body: JSON.stringify({ url: url }),
}); // });
const data = await response.json(); // const data = await response.json();
return new Date(data.date); // return new Date(data.date);
} // }
function App() { function App() {
const [status, setStatus] = useState(""); const [status, setStatus] = useState("");