diff --git a/src/components/SingleProduct/ProductDesign1/index.js b/src/components/SingleProduct/ProductDesign1/index.js index 7819aff..3f19dc0 100644 --- a/src/components/SingleProduct/ProductDesign1/index.js +++ b/src/components/SingleProduct/ProductDesign1/index.js @@ -199,12 +199,15 @@ const Design1 = ({ /> )} - {/* {hoverEffect && ( )} */} -
- + {hoverEffect && ( + <> + + + > + )} ); }; @@ -248,7 +251,7 @@ Design1.defaultProps = { productTags: ["ارسال رایگان", "برچسب های دیگر", "دسته بندی به صورت کادو"], - hoverEffect: false, + hoverEffect: true, //میتونیم تعیین کنیم که قیمت و دکمه اضاف به سبد خرید کنار یکدیگر باشند یا زیر هم priceDirection: "flex-row", diff --git a/src/components/ThemeColor/util/Picker.js b/src/components/ThemeColor/util/Picker.js index 52bd3c6..21ff169 100644 --- a/src/components/ThemeColor/util/Picker.js +++ b/src/components/ThemeColor/util/Picker.js @@ -1,10 +1,11 @@ -import { SketchPicker } from "react-color"; import { useState } from "react"; +import { SketchPicker } from "react-color"; + const Picker = ({ theme, item, setTheme }) => { const [color, setColor] = useState(theme[item]); return (