summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-02-18 22:18:46 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-02-18 22:18:46 +0700
commit75767ed41d28947429f3dbef9c7e128ebc552e64 (patch)
tree77bee121ff883c8b1a00680a53d56f9f473a4397
parent347e28848fb063ffcb7f9268384409e57b7ef3ad (diff)
change animation
-rw-r--r--src/core/components/layouts/AnimationLayout.jsx2
-rw-r--r--src/lib/product/components/Product.jsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/components/layouts/AnimationLayout.jsx b/src/core/components/layouts/AnimationLayout.jsx
index 12b6d112..f40f1eec 100644
--- a/src/core/components/layouts/AnimationLayout.jsx
+++ b/src/core/components/layouts/AnimationLayout.jsx
@@ -8,7 +8,7 @@ const AnimationLayout = ({ children, ...props }) => {
return children && (
<motion.main
- initial={{ opacity: 0, x: 15, y: 0 }}
+ initial={{ opacity: 0, x: 30, y: 0 }}
animate={{ opacity: 1, x: 0, y: 0 }}
exit={{ opacity: 0, x: 0, y: 0 }}
transition={transition}
diff --git a/src/lib/product/components/Product.jsx b/src/lib/product/components/Product.jsx
index 299cdc77..396eba5f 100644
--- a/src/lib/product/components/Product.jsx
+++ b/src/lib/product/components/Product.jsx
@@ -48,7 +48,7 @@ const Product = ({ product }) => {
if (selectedVariant) {
const variant = product.variants.find(variant => variant.id == selectedVariant.value)
const variantAttributes = variant.attributes.length > 0 ? ' - ' + variant.attributes.join(', ') : ''
- console.log(variant);
+
setActiveVariant({
id: variant.id,
code: variant.code,