From 108d2293a5bca81a258ed516fce0abdf4d987861 Mon Sep 17 00:00:00 2001 From: Aminejv Date: Wed, 27 Oct 2021 16:40:32 +0100 Subject: [PATCH] feat(GlobalCarousel): show the file sharing jumper only when the file is public --- .../system/components/GlobalCarousel/index.js | 126 ++++++++++++------ 1 file changed, 86 insertions(+), 40 deletions(-) diff --git a/components/system/components/GlobalCarousel/index.js b/components/system/components/GlobalCarousel/index.js index cf8e263c..d44a73ed 100644 --- a/components/system/components/GlobalCarousel/index.js +++ b/components/system/components/GlobalCarousel/index.js @@ -7,7 +7,7 @@ import * as Jumpers from "~/components/system/components/GlobalCarousel/jumpers" import { css } from "@emotion/react"; import { Alert } from "~/components/core/Alert"; -import { motion } from "framer-motion"; +import { motion, AnimateSharedLayout } from "framer-motion"; import { useDetectTextOverflow, useEscapeKey, @@ -215,29 +215,52 @@ function CarouselHeader({
-
- - - - - - - - - {file.isLink ? : null} -
+ + + + {file.isLink ? : null} +
+
- - - - - - - {file.isLink ? : null} - + + + ); }