From 16ba7ab04352d857b13efaf99e63c30cd17759fc Mon Sep 17 00:00:00 2001 From: Runjuu Date: Mon, 5 Jun 2023 15:42:32 -0700 Subject: [PATCH] feat(products/shop): add coming soon tips --- .../components/pages/products/Sections/ParallaxSection.tsx | 5 ++++- sites/crossbell.io/components/pages/products/lazy.tsx | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/sites/crossbell.io/components/pages/products/Sections/ParallaxSection.tsx b/sites/crossbell.io/components/pages/products/Sections/ParallaxSection.tsx index 5f8e1e0b..0e12865c 100644 --- a/sites/crossbell.io/components/pages/products/Sections/ParallaxSection.tsx +++ b/sites/crossbell.io/components/pages/products/Sections/ParallaxSection.tsx @@ -1,4 +1,4 @@ -import { ComponentProps, PropsWithChildren } from "react"; +import React, { ComponentProps, PropsWithChildren } from "react"; import { m, useTime, useTransform } from "framer-motion"; import { Text, Title, UnstyledButton } from "@mantine/core"; import BaseSection from "./BaseSection"; @@ -15,6 +15,7 @@ export default function ParallaxSection({ btnText, btnHoverClassName, link, + onClick, image, children, }: PropsWithChildren<{ @@ -24,6 +25,7 @@ export default function ParallaxSection({ btnText: string; btnHoverClassName?: string; link: string; + onClick?: (event: React.MouseEvent) => void; image: ComponentProps["src"]; }>) { // image animation @@ -66,6 +68,7 @@ export default function ParallaxSection({ { + event.stopPropagation(); + event.preventDefault(); + showNotification({ message: "Coming Soon", color: "blue" }); + }} image={shopImage} />