From cc6a4de72fd06e86859f94bafdfd572878a2a026 Mon Sep 17 00:00:00 2001
From: darth-coder00 <86726556+darth-coder00@users.noreply.github.com>
Date: Fri, 17 Sep 2021 01:12:00 +0530
Subject: [PATCH] Whats new changes (#514)
* Whats new modal auto visible for New and Returning users post new release
* Minor fix
* Minor change for video
* Minor changes
* making path optional for what's new modal features
---
.../Modals/WhatsNewModal/FeaturesCarousel.tsx | 24 ++++++++++---------
.../Modals/WhatsNewModal/whatsNewData.ts | 2 +-
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/catalog-rest-service/src/main/resources/ui/src/components/Modals/WhatsNewModal/FeaturesCarousel.tsx b/catalog-rest-service/src/main/resources/ui/src/components/Modals/WhatsNewModal/FeaturesCarousel.tsx
index 2ce44dde9e8..0db630e88ec 100644
--- a/catalog-rest-service/src/main/resources/ui/src/components/Modals/WhatsNewModal/FeaturesCarousel.tsx
+++ b/catalog-rest-service/src/main/resources/ui/src/components/Modals/WhatsNewModal/FeaturesCarousel.tsx
@@ -70,17 +70,19 @@ const FeaturesCarousel = ({ data }: Props) => {
{d.title}
{d.description}
- {d.isImage ? (
-

- ) : (
-
- )}
+ {d.path ? (
+ d.isImage ? (
+

+ ) : (
+
+ )
+ ) : null}
))}
diff --git a/catalog-rest-service/src/main/resources/ui/src/components/Modals/WhatsNewModal/whatsNewData.ts b/catalog-rest-service/src/main/resources/ui/src/components/Modals/WhatsNewModal/whatsNewData.ts
index 368a8815a8b..024e29914dd 100644
--- a/catalog-rest-service/src/main/resources/ui/src/components/Modals/WhatsNewModal/whatsNewData.ts
+++ b/catalog-rest-service/src/main/resources/ui/src/components/Modals/WhatsNewModal/whatsNewData.ts
@@ -51,7 +51,7 @@ export const WHATS_NEW = [
description:
"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. ",
isImage: true,
- path: dummyImg,
+ path: '',
},
],
changeLogs: {