assignment page styling updated

This commit is contained in:
Jae Young Ahn 2025-05-02 13:51:25 -07:00
parent cbc2d631fb
commit 1f7124a786
2 changed files with 90 additions and 20 deletions

View file

@ -20,14 +20,13 @@ const AssignmentPage = () => {
const fetchAssignments = async () => {
try {
const res = await fetch("http://localhost:8082/assignments/instructor/9", {
const res = await fetch("http://localhost:8082/instructor/list/9", {
// credentials: "include",
});
if (!res.ok) throw new Error("Failed to fetch");
const data = await res.json();
console.log("Fetched assignments:", data); // This line shows whats coming from the API
setProjects(data);
// Optional: Remove duplicate assignment IDs if needed
const unique = Array.from(