File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
frontend/src/components/form/form-elements Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 22import React , { useState } from "react" ;
33import ComponentCard from "../../common/ComponentCard" ;
44import { useDropzone } from "react-dropzone" ;
5+ import Button from "@/components/ui/button/Button" ;
56
67const 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 >
You can’t perform that action at this time.
0 commit comments