lint bro happ + test for getUserProject

This commit is contained in:
al8763be 2024-03-18 21:08:33 +01:00
parent 4392b68397
commit 8eb23bf7f9
6 changed files with 22 additions and 13 deletions

View file

@ -1,4 +1,4 @@
import React, { useState, createContext, useEffect } from "react";
import { useState, createContext, useEffect } from "react";
import { Project } from "../Types/goTypes";
import { api } from "../API/API";
import { Link } from "react-router-dom";
@ -23,7 +23,7 @@ function UserProjectPage(): JSX.Element {
};
// Call getProjects when the component mounts
useEffect(() => {
getProjects();
void getProjects();
}, []);
const handleProjectClick = (projectName: string): void => {