From 0dc23d96bf9fae1b506f4eff5ac4df0fd87099e3 Mon Sep 17 00:00:00 2001 From: Vivek Vishal Date: Sun, 29 Sep 2024 10:28:51 +0530 Subject: [PATCH 1/2] update logic to display events- registration form Signed-off-by: Vivek Vishal --- src/sections/Community/Event-single/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sections/Community/Event-single/index.js b/src/sections/Community/Event-single/index.js index 41f99566799d..8ac1722a0d58 100644 --- a/src/sections/Community/Event-single/index.js +++ b/src/sections/Community/Event-single/index.js @@ -59,6 +59,7 @@ const EventSingle = ({ data }) => { }; const isEventUrlSpecified = !!frontmatter.eurl; const showJoinUsButton = !isEventPassed() && isEventUrlSpecified; + const showRegisterForm = frontmatter.register && !isEventPassed(); return ( {
- { frontmatter.register && + { showRegisterForm && {
)}
- { frontmatter.register && + { showRegisterForm && Date: Sun, 29 Sep 2024 10:31:05 +0530 Subject: [PATCH 2/2] Update index.mdx Signed-off-by: Vivek Vishal --- src/collections/events/2024/hacktoberfest-2024/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collections/events/2024/hacktoberfest-2024/index.mdx b/src/collections/events/2024/hacktoberfest-2024/index.mdx index a175699a0cb4..2e13d576a303 100644 --- a/src/collections/events/2024/hacktoberfest-2024/index.mdx +++ b/src/collections/events/2024/hacktoberfest-2024/index.mdx @@ -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 ---