Remove unused getLastCommitDate function and clean up imports in App component
This commit is contained in:
24
src/App.tsx
24
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("");
|
||||
|
||||
Reference in New Issue
Block a user