From 8d372deb206d7c5d8928eea459898efc433f9405 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Wed, 16 Feb 2022 17:16:23 +0330 Subject: [PATCH] reza added something --- src/assets/icons/ar-blue.svg | 10 +- src/assets/icons/hamburger-blue.svg | 8 +- src/assets/icons/qr-blue.svg | 8 +- src/components/Drawer/index.js | 2 +- src/components/Header/index.js | 32 ++-- src/components/Input/index.js | 11 +- src/components/Navbar/index.js | 4 +- src/components/Progress/index.js | 10 +- src/components/Search/index.js | 35 ++-- src/components/Select/index.js | 4 +- src/redux/reducers/book.js | 1 + src/redux/reducers/public.js | 2 +- src/router.js | 4 +- .../Home/Portrait/Private/Blogs/index.js | 45 +++-- .../Home/Portrait/Private/MyBooks/index.js | 18 +- src/views/Home/Portrait/Private/Shop/index.js | 25 ++- .../Home/Portrait/Private/Videos/index.js | 36 ++-- src/views/Home/Portrait/Private/index.js | 46 +++-- .../Portrait/Public/GradiantText/index.js | 4 +- src/views/Products/index.js | 100 ++--------- .../Products/layouts/{ => Desktop}/Main.js | 9 +- .../Products/layouts/{ => Desktop}/Sidebar.js | 9 +- src/views/Products/layouts/Mobile/Header.js | 69 ++++++++ src/views/Products/layouts/Mobile/Main.js | 164 ++++++++++++++++++ 24 files changed, 442 insertions(+), 214 deletions(-) rename src/views/Products/layouts/{ => Desktop}/Main.js (96%) rename src/views/Products/layouts/{ => Desktop}/Sidebar.js (95%) create mode 100644 src/views/Products/layouts/Mobile/Header.js create mode 100644 src/views/Products/layouts/Mobile/Main.js diff --git a/src/assets/icons/ar-blue.svg b/src/assets/icons/ar-blue.svg index b86ec83..9b4256d 100644 --- a/src/assets/icons/ar-blue.svg +++ b/src/assets/icons/ar-blue.svg @@ -1,9 +1,9 @@ - - - - - AR + + + + + AR diff --git a/src/assets/icons/hamburger-blue.svg b/src/assets/icons/hamburger-blue.svg index cfd3da8..05fb996 100644 --- a/src/assets/icons/hamburger-blue.svg +++ b/src/assets/icons/hamburger-blue.svg @@ -1,8 +1,8 @@ - - - - + + + + diff --git a/src/assets/icons/qr-blue.svg b/src/assets/icons/qr-blue.svg index 28db0fd..ebc902e 100644 --- a/src/assets/icons/qr-blue.svg +++ b/src/assets/icons/qr-blue.svg @@ -1,9 +1,9 @@ - - - - + + + + diff --git a/src/components/Drawer/index.js b/src/components/Drawer/index.js index aa49b21..30ed875 100644 --- a/src/components/Drawer/index.js +++ b/src/components/Drawer/index.js @@ -41,7 +41,7 @@ const MyDrawer = ({ onClick={(e) => e.stopPropagation()} >
diff --git a/src/components/Header/index.js b/src/components/Header/index.js index a2b625e..8e8d111 100644 --- a/src/components/Header/index.js +++ b/src/components/Header/index.js @@ -1,32 +1,38 @@ import React from "react"; import { Link } from "react-router-dom"; -import {connect} from 'react-redux'; -import arrowBlueIcon from "../../assets/icons/arrow-right-blue.svg"; +import { connect } from "react-redux"; +import arrowGreenIcon from "../../assets/icons/dropdown-blue.svg"; import arrowWhiteIcon from "../../assets/icons/arrow-left-white.svg"; function Header({ title, link, isDark }) { return (
- + {title} - + {isDark ? ( + + ) : ( + + )}
); } const mapStateToProps = (state) => ({ - isDark: state.publicApi.isDark -}) + isDark: state.publicApi.isDark, +}); -const mapDispatchToProps = { - -} +const mapDispatchToProps = {}; export default connect(mapStateToProps, mapDispatchToProps)(Header); diff --git a/src/components/Input/index.js b/src/components/Input/index.js index f768b79..06ea236 100644 --- a/src/components/Input/index.js +++ b/src/components/Input/index.js @@ -49,10 +49,13 @@ export default function Input(props) { return (
{/*