Skip to content

Commit

Permalink
Merge pull request #130 from SRM-IST-KTR/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
githubcommunitysrm authored Jan 23, 2025
2 parents ae6224d + 12c562d commit f5b88d9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions components/Events/LiveEvents/Hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,19 @@ const Hero = ({
)}
</div>
<button
onClick={!isRegistrationClosed ? handleRegisterButtonClick : null}
onClick={() => {
if (!isRegistrationClosed) {
if (!registrationLink) {
handleRegisterButtonClick();
} else {
Registration_Link();
}
}
}}
disabled={isRegistrationClosed}
className={`ml-auto filter font-dmSans font-semibold w-full rounded-lg p-3 sm:p-5 text-xl ${isRegistrationClosed
? "bg-gray-500 text-gray-200 cursor-not-allowed"
: "bg-bright_green hover:bg-green-700 text-black"
? "bg-gray-500 text-gray-200 cursor-not-allowed"
: "bg-bright_green hover:bg-green-700 text-black"
}`}
>
{isRegistrationClosed ? "Registration Closed" : "Register Now"}
Expand Down

0 comments on commit f5b88d9

Please sign in to comment.