diff --git a/src/assets/img/Group 2275.svg b/src/assets/img/Group 2275.svg new file mode 100644 index 0000000..a8dda32 --- /dev/null +++ b/src/assets/img/Group 2275.svg @@ -0,0 +1,308 @@ + diff --git a/src/assets/img/Rolling-2s-223px.gif b/src/assets/img/Rolling-2s-223px.gif new file mode 100644 index 0000000..c7eb95f Binary files /dev/null and b/src/assets/img/Rolling-2s-223px.gif differ diff --git a/src/components/Button/index.js b/src/components/Button/index.js index 1887095..cdb46a8 100644 --- a/src/components/Button/index.js +++ b/src/components/Button/index.js @@ -1,27 +1,30 @@ import React from "react"; import { Link } from "react-router-dom"; -const Button = ( - { - onClick, - title, - borderType, - to, - type, - className, - submit - } -) => { - return ( - - {submit ? : - title} - - ); +const Button = ({ + onClick, + title, + borderType, + to, + type, + className, + submit, + loading, +}) => { + return ( + + {submit ? : title} + + ); }; export default Button; \ No newline at end of file diff --git a/src/components/Product/index.js b/src/components/Product/index.js index 4f1d65c..94ce25f 100644 --- a/src/components/Product/index.js +++ b/src/components/Product/index.js @@ -48,7 +48,9 @@ const ProductDesign = ({ }) => { const [isHovering, setIsHovering] = useState(false); // alert(catId); - console.log("userInfo:*******************************************************"); + console.log( + "userInfo:*******************************************************" + ); console.log(userInfo); let rulesAccepted = userInfo.rulesAccepted; const emkanat = [ @@ -82,7 +84,21 @@ const ProductDesign = ({ }, ]; - let weekday =["شنبه","یکشنبه","دوشنبه","سهشنبه","چهارشنبه","پنچشنبه","جمعه"] + //completeProfule----------- + const completeProfule=(id)=>{ + localStorage.setItem("termId",id) + } + //--------------------------- + + let weekday = [ + "شنبه", + "یکشنبه", + "دوشنبه", + "سهشنبه", + "چهارشنبه", + "پنچشنبه", + "جمعه", + ]; let description = "دستشویی,کتابخانه,آزمایشگاه"; if (catId == 3) { return ( @@ -148,6 +164,9 @@ const ProductDesign = ({ { + completeProfule(product?.termId); + }} > تکمیل اطلاعات کاربری و افزودن به سبد خرید @@ -175,7 +194,10 @@ const ProductDesign = ({ } if (catId == 5) { return ( -