From 0ce139e2d481b394f74f03ab3dd31d0cc52f9c23 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 11 Mar 2026 19:59:56 +0000 Subject: [PATCH] Switch to version 1: remove src/components/sections/product/ProductCardOneWithSaving.tsx --- .../product/ProductCardOneWithSaving.tsx | 83 ------------------- 1 file changed, 83 deletions(-) delete mode 100644 src/components/sections/product/ProductCardOneWithSaving.tsx diff --git a/src/components/sections/product/ProductCardOneWithSaving.tsx b/src/components/sections/product/ProductCardOneWithSaving.tsx deleted file mode 100644 index 1169d3b..0000000 --- a/src/components/sections/product/ProductCardOneWithSaving.tsx +++ /dev/null @@ -1,83 +0,0 @@ -'use client'; - -import ProductCardOne from './ProductCardOne'; - -interface ProductCardOneWithSavingProps { - title: string; - description: string; - tag?: string; - tagIcon?: any; - products: Array<{ - id: string; - name: string; - price: string; - imageSrc: string; - imageAlt?: string; - onFavorite?: () => void; - onProductClick?: () => void; - isFavorited?: boolean; - }>; - animationType: 'none' | 'opacity' | 'slide-up' | 'scale-rotate' | 'blur-reveal'; - textboxLayout: 'default' | 'split' | 'split-actions' | 'split-description' | 'inline-image'; - useInvertedBackground: boolean; - gridVariant: - | 'uniform-all-items-equal' - | 'bento-grid' - | 'bento-grid-inverted' - | 'two-columns-alternating-heights' - | 'asymmetric-60-wide-40-narrow' - | 'three-columns-all-equal-width' - | 'four-items-2x2-equal-grid' - | 'one-large-right-three-stacked-left' - | 'items-top-row-full-width-bottom' - | 'full-width-top-items-bottom-row' - | 'one-large-left-three-stacked-right'; - onWorkoutStart?: (workoutData: any) => void; -} - -export function ProductCardOneWithSaving({ - title, - description, - tag, - tagIcon, - products, - animationType, - textboxLayout, - useInvertedBackground, - gridVariant, - onWorkoutStart, -}: ProductCardOneWithSavingProps) { - const handleProductClick = (productId: string, productName: string) => { - const workoutData = { - type: 'training' as const, - date: new Date().toISOString().split('T')[0], - data: { - workout: productName, - startTime: Date.now(), - productId, - }, - }; - onWorkoutStart?.(workoutData); - }; - - const enhancedProducts = products.map(product => ({ - ...product, - onProductClick: () => handleProductClick(product.id, product.name), - })); - - return ( - - ); -} - -export default ProductCardOneWithSaving; \ No newline at end of file