From 3250b651f614866d026d6123dc696409744d706d Mon Sep 17 00:00:00 2001 From: Aminejv Date: Thu, 20 Jan 2022 19:05:05 +0100 Subject: [PATCH] feat(Jumpers): move AnimatePresence up in the tree --- .../system/components/GlobalCarousel/index.js | 80 ++++++------ .../GlobalCarousel/jumpers/EditInfo.js | 58 ++++----- .../GlobalCarousel/jumpers/FileDescription.js | 62 +++++---- .../GlobalCarousel/jumpers/MoreInfo.js | 96 ++++++-------- .../GlobalCarousel/jumpers/Share.js | 122 ++++++++---------- 5 files changed, 194 insertions(+), 224 deletions(-) diff --git a/components/system/components/GlobalCarousel/index.js b/components/system/components/GlobalCarousel/index.js index c8b30c4d..ebc77333 100644 --- a/components/system/components/GlobalCarousel/index.js +++ b/components/system/components/GlobalCarousel/index.js @@ -250,7 +250,9 @@ function CarouselHeader({ <> {isOwner && ( - + + {isEditInfoVisible && } + )} {isOwner && ( @@ -259,26 +261,27 @@ function CarouselHeader({ )} )} - - - + + {isFileDescriptionVisible && ( + + )} + + + {isMoreInfoVisible && ( + + )} + + + {isShareFileVisible && ( + + )} +