From 7a4c92526e35a197ff98bd846f30c6693059a501 Mon Sep 17 00:00:00 2001 From: Rafi Arrafif Date: Thu, 26 Mar 2026 16:50:31 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20add=20"add=20to=20list"?= =?UTF-8?q?=20button=20to=20banner=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/sections/Hero/components/Swiper.tsx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/features/home/sections/Hero/components/Swiper.tsx b/features/home/sections/Hero/components/Swiper.tsx index 09c1362..2b78bdd 100644 --- a/features/home/sections/Hero/components/Swiper.tsx +++ b/features/home/sections/Hero/components/Swiper.tsx @@ -6,6 +6,7 @@ import { Autoplay, Navigation, Pagination } from "swiper/modules"; import { Swiper, SwiperSlide } from "swiper/react"; import { Icon } from "@iconify/react"; import Link from "next/link"; +import { useAuth } from "@/shared/contexts/AuthContext"; export interface HeroSwiperProps { data: { @@ -22,6 +23,7 @@ export interface HeroSwiperProps { } const HeroSwiper = (props: HeroSwiperProps) => { + const { session } = useAuth(); return (
{

{slide.synopsis}

-
+
+ {session?.user && ( + + )}