From f128c15c5e39314fe45d26ca5239f16e4f730bb8 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Thu, 7 Jul 2022 13:53:03 +0430 Subject: [PATCH] update src/views/Blog/index.js --- src/views/Blog/index.js | 148 +++++++++++++++++++--------------------- 1 file changed, 72 insertions(+), 76 deletions(-) diff --git a/src/views/Blog/index.js b/src/views/Blog/index.js index 4fad543..791cdb5 100644 --- a/src/views/Blog/index.js +++ b/src/views/Blog/index.js @@ -15,7 +15,6 @@ import { useParams } from "react-router-dom"; import arrow from "../../assets/icons/dropdown-blue.svg"; export const Blog = ({ - isMobile, getInfo, blog, setHeaderOptions, @@ -80,102 +79,99 @@ export const Blog = ({ return (
- - {isMobile && ( -
- -
-
-
- -
- - {window.t("نوشته از:" + " " + "کامران ایزدی")} - -

- {window.t("سردبیر بخش وبلاگ دانوین")} -

-
-
-
- - {window.t("زمان مطالعه" + " " + "۳۰ دقیقه")} - - - {window.t("1400/11/24")} - -
-
-
-
- )} - {!isMobile && ( -
- )} -
- - {blog?.title} - - {!isMobile && ( -
+
+ +
+
- +
- + {window.t("نوشته از:" + " " + "کامران ایزدی")} -

+

{window.t("سردبیر بخش وبلاگ دانوین")}

- + {window.t("زمان مطالعه" + " " + "۳۰ دقیقه")} - + {window.t("1400/11/24")}
- )} +
+
+ +
+ +
+ + {blog?.title} + + {/* desktop */} +
+
+ +
+ + {window.t("نوشته از:" + " " + "کامران ایزدی")} + +

+ {window.t("سردبیر بخش وبلاگ دانوین")} +

+
+
+
+ + {window.t("زمان مطالعه" + " " + "۳۰ دقیقه")} + + + {window.t("1400/11/24")} + +
+
+ {/* desktop */}
- - {isMobile ? ( -
- {blogs.map((blog, index) => ( - - ))} -
- ) : ( -
- -
- )} + {/* mobile */} +
+ {blogs.map((blog, index) => ( + + ))} +
+ {/* mobile */} + {/* desktop */} +
+ +
+ {/* desktop */}
); };