added marketplace cards

This commit is contained in:
Nalvazhuthi
2025-03-26 13:52:10 +05:30
parent 9a358bc1c0
commit 6aa1ee8bdd
7 changed files with 268 additions and 140 deletions

View File

@@ -71,11 +71,17 @@ const Tools: React.FC = () => {
setOpenDrop(false); // Close the dropdown
}
};
const handleEscKeyPress = (event: KeyboardEvent) => {
if (event.key === "Escape") {
setIsPlaying(false); // Set isPlaying to false when Escape key is pressed
}
};
document.addEventListener("mousedown", handleOutsideClick);
document.addEventListener("keydown", handleEscKeyPress); // Listen for ESC key
return () => {
document.removeEventListener("mousedown", handleOutsideClick);
document.removeEventListener("keydown", handleEscKeyPress); // Clean up the event listener
};
}, []);