From 597bd2e603a7270ccede11e93e394cf9711879d0 Mon Sep 17 00:00:00 2001 From: Akuoko Daniel Jnr Date: Fri, 2 Apr 2021 15:17:51 +0000 Subject: [PATCH] fix: carousel sidebar --- components/core/CarouselSidebarData.js | 60 +++++++++++++++----------- 1 file changed, 36 insertions(+), 24 deletions(-) diff --git a/components/core/CarouselSidebarData.js b/components/core/CarouselSidebarData.js index 8941840b..dfb9b9b7 100644 --- a/components/core/CarouselSidebarData.js +++ b/components/core/CarouselSidebarData.js @@ -469,7 +469,7 @@ class CarouselSidebarData extends React.Component { ); } - + console.log(Validations.isPreviewableImage(type)); elements.push(
@@ -563,34 +563,46 @@ class CarouselSidebarData extends React.Component { )} {type && Validations.isPreviewableImage(type) ? null : (
- - Preview image - - {coverImage ? ( + {coverImage && ( - This is the preview image of your file. -
- + Preview image + + + + This is the preview image of your file. +
+ +
+
+ + )} + {this.props.isOwner && ( + + Add a cover image for your file. + +
+ + + Upload image +
- ) : ( - Add a cover image for your file. )} -
- - - Upload image - -
)} {this.props.isOwner ? (