Display & Delete in love list

This commit is contained in:
2024-10-11 19:08:52 +02:00
parent b702bc629c
commit 1077400260
23 changed files with 644 additions and 523 deletions
@@ -1,6 +1,7 @@
import { useEffect, useState } from 'react';
export const useData = () => {
const [isLoading, setIsLoading] = useState(true);
const [userData, setUserData] = useState(null);
useEffect(() => {
@@ -23,11 +24,13 @@ export const useData = () => {
),
};
setIsLoading(false);
setUserData(formattedResponse);
})();
}, []);
return {
isLoading,
userData,
};
};