Skip to content

Commit

Permalink
Merge pull request #5942 from vishalvivekm/events-update
Browse files Browse the repository at this point in the history
Events update
  • Loading branch information
vishalvivekm authored Sep 29, 2024
2 parents 1951b9c + e0e8a42 commit ca9fc9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/collections/events/2024/hacktoberfest-2024/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ eurl: https://www.youtube.com/watch?v=iKe52yMWWK4
type: Event
speakers: ["Vivek Vishal", "Sudhanshu Dasgupta", "Shlok Mishra", "Alero Awani", "Eti Ijeoma", "Hargun Kaur"]
published: true
upcoming: true
upcoming: false
register: true
---

Expand Down
5 changes: 3 additions & 2 deletions src/sections/Community/Event-single/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const EventSingle = ({ data }) => {
};
const isEventUrlSpecified = !!frontmatter.eurl;
const showJoinUsButton = !isEventPassed() && isEventUrlSpecified;
const showRegisterForm = frontmatter.register && !isEventPassed();
return (
<EventPageWrapper>
<PageHeader
Expand All @@ -70,7 +71,7 @@ const EventSingle = ({ data }) => {
<div className="event-info-block">
<div className="tags">
<div className="register-form">
{ frontmatter.register &&
{ showRegisterForm &&
<EventForm
title="Register Today!"
form="event"
Expand Down Expand Up @@ -102,7 +103,7 @@ const EventSingle = ({ data }) => {
</div>
)}
<div className="register-form-sm">
{ frontmatter.register &&
{ showRegisterForm &&
<EventForm
title="Register Today!"
form="event"
Expand Down

0 comments on commit ca9fc9c

Please sign in to comment.