Skip to content

Commit

Permalink
added handleSubmit btn
Browse files Browse the repository at this point in the history
  • Loading branch information
sonylomo committed Nov 13, 2023
1 parent c074326 commit 65bcc9e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/APP/pages/chapter/sections/WelcomeSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ function WelcomeSection({ chapter }) {
const goBack = () => {
navigate(-1);
};

const handleSubmit = () => {
console.log("Form Submitted");
closeModal();
};

const websiteLink = chapter.socials.website ? chapter.socials.website : "#";
const facebookLink = chapter.socials.facebook
? chapter.socials.facebook
Expand Down Expand Up @@ -213,7 +219,7 @@ function WelcomeSection({ chapter }) {
</div>
</div>

{/* Modal */}
{/* Join Chapter Modal Form */}
<Transition appear show={isOpen} as={Fragment}>
<Dialog as="div" className="relative z-10" onClose={closeModal}>
<Transition.Child
Expand Down Expand Up @@ -268,7 +274,7 @@ function WelcomeSection({ chapter }) {
<button
type="button"
className="inline-flex justify-center rounded-md border border-transparent text-white hover:text-[#009975] hover:border-[#009975] bg-[#009975] px-4 py-2 text-sm font-medium hover:bg-white focus:outline-none focus-visible:ring-2"
onClick={closeModal}
onClick={handleSubmit}
>
Join
</button>
Expand Down

1 comment on commit 65bcc9e

@vercel
Copy link

@vercel vercel bot commented on 65bcc9e Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

syt-web-redesign – ./

syt-web-redesign.vercel.app
syt-web-redesign-sytweb.vercel.app
syt-web-redesign-git-main-sytweb.vercel.app

Please sign in to comment.