Skip to content

Commit 9d3f30d

Browse files
button added to create exam
1 parent 3f302cc commit 9d3f30d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

frontend/src/components/form/form-elements/DocumentDropZone.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import React, { useState } from "react";
33
import ComponentCard from "../../common/ComponentCard";
44
import { useDropzone } from "react-dropzone";
5+
import Button from "@/components/ui/button/Button";
56

67
const DropzoneComponent: React.FC = () => {
78
const [files, setFiles] = useState<File[]>([]);
@@ -22,7 +23,7 @@ const DropzoneComponent: React.FC = () => {
2223
};
2324

2425
return (
25-
<div className="flex flex-col flex-1 lg:w-1/2 w-full mx-auto">
26+
<div className="flex flex-col flex-1 lg:w-1/2 w-full mx-auto">
2627
<ComponentCard title="Upload Documents">
2728
<div className="transition border border-gray-300 border-dashed cursor-pointer dark:hover:border-brand-500 dark:border-gray-700 rounded-xl hover:border-brand-500">
2829
<div>
@@ -93,6 +94,11 @@ const DropzoneComponent: React.FC = () => {
9394
</ul>
9495
)}
9596
</div>
97+
<div className="flex items-center justify-right">
98+
<Button size="md" variant="primary" disabled={files.length === 0} className="flex mt-6 mx-auto">
99+
Create Exam!
100+
</Button>
101+
</div>
96102

97103
</ComponentCard>
98104
</div>

0 commit comments

Comments
 (0)