diff --git a/client/src/components/GIFTCheatSheet/GiftCheatSheet.tsx b/client/src/components/GIFTCheatSheet/GiftCheatSheet.tsx index f9cbab1..179e454 100644 --- a/client/src/components/GIFTCheatSheet/GiftCheatSheet.tsx +++ b/client/src/components/GIFTCheatSheet/GiftCheatSheet.tsx @@ -9,6 +9,7 @@ const GiftCheatSheet: React.FC = () => { navigator.clipboard.writeText(text) .then(() => { setCopySuccess(true); // Afficher le message de succès + console.log(copySuccess); // Masquer le message de succès après quelques secondes setTimeout(() => { setCopySuccess(false); diff --git a/client/src/pages/Teacher/Dashboard/Dashboard.tsx b/client/src/pages/Teacher/Dashboard/Dashboard.tsx index 7bec831..2582871 100644 --- a/client/src/pages/Teacher/Dashboard/Dashboard.tsx +++ b/client/src/pages/Teacher/Dashboard/Dashboard.tsx @@ -264,12 +264,7 @@ const Dashboard: React.FC = () => { console.error('Error creating folder:', error); } }; - function sleep(ms: number): Promise { - return new Promise(resolve => { - setTimeout(resolve, ms); - }); - } - + const handleDeleteFolder = async () => {