From f6c464372fb78f3ec8cf138977abdd14aa99270c Mon Sep 17 00:00:00 2001 From: Andymick Date: Sat, 18 Jul 2026 10:01:54 +0100 Subject: [PATCH] Disable add to bag button if no personalization added and show prompt message --- src/components/DesignCanvas.tsx | 52 ++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 21 deletions(-) diff --git a/src/components/DesignCanvas.tsx b/src/components/DesignCanvas.tsx index d4a4ef8..ad4127c 100644 --- a/src/components/DesignCanvas.tsx +++ b/src/components/DesignCanvas.tsx @@ -845,32 +845,42 @@ export default function DesignCanvas({ product }: { product: ProductDTO }) { )} -
-
+
+
+
+ + {quantity} + +
- {quantity} -
- + {elementsFront.length === 0 && elementsBack.length === 0 && ( +

Add text or images to personalize your design before adding to bag

+ )} + {justAdded &&

Added to your bag.

}
- {justAdded &&

Added to your bag.

}
setShowLoginPrompt(false)} />