I am currently working on a project using NextJs and TypeScript, and I have encountered some strange issues with the onClick function. It appears that the function is not being recognized within my component.
"use client";
import styles from "./UploadCard.module.css";
import Image from "next/image";
import Card from "@/components/Card/Card";
// More imports...
function UploadCard() {
// Component code...
}
export default UploadCard;
// Other codes...
This is the CSS for the SpreadSheetComponent:
.dropdown {
position: absolute;
width: 100%;
opacity: 100%;
display: flex;
justify-content: space-between;
}
/* Additional CSS styling... */
I have tried debugging with console logs, checked the state behavior, and verified the CSS styling, but I am still unable to identify the cause of this issue.