diff --git a/components/button/upload-form.tsx b/components/button/upload-form.tsx index 0ebca3b..1926e39 100644 --- a/components/button/upload-form.tsx +++ b/components/button/upload-form.tsx @@ -35,7 +35,7 @@ const UploadForm = ({style, title}: UploadFormProps): JSX.Element => { await handleFileChange(syntheticEvent); } }; - const { getRootProps, getInputProps, isDragActive, fileRejections } = useDropzone({ + const { getRootProps, getInputProps, isDragActive } = useDropzone({ onDrop, onDropRejected: (fileRejections) => { if (fileRejections.some(rejection => rejection.errors.some(error => error.code === 'too-many-files'))) { diff --git a/components/ui/3d-card.tsx b/components/ui/3d-card.tsx index eb873ac..8a814ad 100644 --- a/components/ui/3d-card.tsx +++ b/components/ui/3d-card.tsx @@ -116,8 +116,7 @@ export const CardItem = ({ rotateX?: number | string; rotateY?: number | string; rotateZ?: number | string; - [key: string]: any; -}) => { + [key: string]: React.ReactNode | React.ElementType | string | number | undefined;}) => { const ref = useRef(null); const [isMouseEntered] = useMouseEnter();