Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events update #5942

Merged
merged 2 commits into from
Sep 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading