This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit 31ae42f7ce717835352d47a634d99a56d1568cdd
Author: Lari Hotari <[email protected]>
AuthorDate: Mon Oct 28 10:21:02 2024 +0200

    Fix featured event display logic
---
 src/components/pages/EventsPage/EventsPage.tsx                  | 4 +---
 src/components/pages/EventsPage/FeaturedEvent/FeaturedEvent.tsx | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/components/pages/EventsPage/EventsPage.tsx 
b/src/components/pages/EventsPage/EventsPage.tsx
index 72dfcd4fb35b..c3a3a7bd9560 100644
--- a/src/components/pages/EventsPage/EventsPage.tsx
+++ b/src/components/pages/EventsPage/EventsPage.tsx
@@ -30,9 +30,7 @@ const EventsPage: React.FC = () => {
             <ContributeDataDrivenPage />
           </section>
 
-          <div className={s.FeaturedEvent}>
-            <FeaturedEvent />
-          </div>
+          <FeaturedEvent />
         </div>
         <section>
           <form>
diff --git a/src/components/pages/EventsPage/FeaturedEvent/FeaturedEvent.tsx 
b/src/components/pages/EventsPage/FeaturedEvent/FeaturedEvent.tsx
index 911a225825c9..bec51adca824 100644
--- a/src/components/pages/EventsPage/FeaturedEvent/FeaturedEvent.tsx
+++ b/src/components/pages/EventsPage/FeaturedEvent/FeaturedEvent.tsx
@@ -6,7 +6,7 @@ import Button from '@site/src/components/ui/Button/Button';
 const isShow = false;
 
 const FeaturedEvent: React.FC = () => {
-  if (isShow) {
+  if (!isShow) {
     return null;
   }
 

Reply via email to