@@ -38,7 +38,7 @@ const useStyles = makeStyles(theme => ({
3838 }
3939} ) ) ;
4040
41- export default function ApplyModal ( ) {
41+ export default function ApplyModal ( { fullWidth = false , ... rest } ) {
4242 const classes = useStyles ( ) ;
4343 const [ open , setOpen ] = useState ( false ) ;
4444 const [ formData , updateFormData ] = useState ( { } ) ;
@@ -96,6 +96,8 @@ export default function ApplyModal() {
9696 size = "large"
9797 variant = "contained"
9898 onClick = { handleClickOpen }
99+ { ...rest }
100+ fullWidth = { fullWidth }
99101 >
100102 Enquire Now
101103 </ Button >
@@ -114,6 +116,7 @@ export default function ApplyModal() {
114116 </ DialogContentText >
115117 < ValidatorForm onSubmit = { handleSubmit } >
116118 < TextValidator
119+ required
117120 key = "name"
118121 className = { classes . textField }
119122 label = "Full Name"
@@ -127,6 +130,7 @@ export default function ApplyModal() {
127130 />
128131
129132 < TextValidator
133+ required
130134 key = "email"
131135 className = { classes . textField }
132136 label = "Email"
@@ -163,6 +167,7 @@ export default function ApplyModal() {
163167
164168 < Grid item xs = { 10 } >
165169 < TextValidator
170+ required
166171 key = "contact"
167172 className = { classes . textField }
168173 label = "WhatsApp / Contact Number "
@@ -184,6 +189,7 @@ export default function ApplyModal() {
184189 </ Grid >
185190
186191 < TextValidator
192+ required
187193 key = "course"
188194 className = { classes . textField }
189195 label = "Course & Branch"
@@ -197,6 +203,7 @@ export default function ApplyModal() {
197203 />
198204
199205 < SelectValidator
206+ required
200207 key = "year"
201208 className = { classes . textField }
202209 value = { formData . year }
@@ -217,6 +224,7 @@ export default function ApplyModal() {
217224 </ SelectValidator >
218225
219226 < TextValidator
227+ required
220228 key = "college"
221229 className = { classes . textField }
222230 label = "College Name"
@@ -231,7 +239,7 @@ export default function ApplyModal() {
231239
232240 { submitting === 0 ? (
233241 < Button type = "submit" variant = "contained" color = "secondary" >
234- Apply
242+ Submit
235243 </ Button >
236244 ) : (
237245 < div className = { classes . submissions } >
0 commit comments