Skip to content

Commit

Permalink
Merge pull request #122 from IEEEUCSC/main
Browse files Browse the repository at this point in the history
Add
  • Loading branch information
Udeesha-Prabhashana authored Feb 5, 2024
2 parents c9464ee + 30d9db9 commit 41f6e0f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Frontend/src/Components/TeamRegistration/TeamRegi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default function Registration() {
Register your Team For Hackaholics 6.0
</h1>
{/* display flex */}
<div className="col-md-3 text-center" >
<div className="col-md-3 text-center">
<div className="d-flex flex-column align-items-center">
<a href="/" target="_blank">
<button className="btn btn-primary py-2 px-4 text-white">
Expand Down Expand Up @@ -125,7 +125,7 @@ export default function Registration() {
<div className="col-md-12 aos-init aos-animate" data-aos="fade-up">
{/* form disable if no slots remaining , add class to disable */}
{/* <form onSubmit={handleSubmit(onSubmit)}> */}
<form onSubmit={handleSubmit(onSubmit)} className="form">
<form onSubmit={handleSubmit(onSubmit)} className={slotsRemaining <= 0 ? "disable-form" : "form"}>
{/* Team Information */}
<div className="row form-group">
<div className="col-md-12">
Expand Down Expand Up @@ -305,15 +305,14 @@ export default function Registration() {
)}

<div className="row form-group">
<div className="col-md-12 text-left align-items-left">
<div className="col-md-12 text-center align-items-center">
<input
type="submit"
value={isSubmitting ? "Registering..." : "Register"}
className={`btn btn-primary py-2 px-4 text-white ${
isSubmitting ? "btn-loading" : ""
}`}
id="btnSubmit"
disabled={isSubmitting}
disabled={isSubmitting || slotsRemaining <= 0}
/>
</div>
</div>
Expand All @@ -337,6 +336,7 @@ function renderMemberFields(prefix: string, register: any) {
</h3>
</div>
<div className="col-md-6">
<label htmlFor={`${prefix}-name`}>Name</label>
<label htmlFor={`${prefix}-name`}>Name</label>
<input
type="text"
Expand All @@ -346,6 +346,7 @@ function renderMemberFields(prefix: string, register: any) {
/>
</div>
<div className="col-md-6">
<label htmlFor={`${prefix}-year`}>Year of Study</label>
<label htmlFor={`${prefix}-year`}>Year of Study</label>
<select
id={`${prefix}-year`}
Expand Down

0 comments on commit 41f6e0f

Please sign in to comment.