From b073cb61903f3e10be3a7127ab426bedcca06d91 Mon Sep 17 00:00:00 2001 From: Pedram Keshavarzi Date: Tue, 25 Jan 2022 12:25:28 +0330 Subject: [PATCH] Checkbox Bug Fixed --- src/components/Checkbox/index.js | 5 +- .../VerticalExpandableProductFilter/index.js | 9 +- .../Product/Desktop/ProductOverAll/index.js | 164 ++++++++++++++++++ src/views/Product/Desktop/index.js | 5 +- src/views/Product/index.js | 6 +- src/views/Products/layouts/Sidebar.js | 4 +- tailwind.config.js | 8 + 7 files changed, 193 insertions(+), 8 deletions(-) create mode 100644 src/views/Product/Desktop/ProductOverAll/index.js diff --git a/src/components/Checkbox/index.js b/src/components/Checkbox/index.js index 87ce1ae..0f1b141 100644 --- a/src/components/Checkbox/index.js +++ b/src/components/Checkbox/index.js @@ -2,6 +2,7 @@ import React from "react"; import './index.css'; export default function Checkbox(props) { + console.log(props) return (
@@ -16,8 +17,8 @@ export default function Checkbox(props) {
- -
) :
+ +
+ } ); }; @@ -182,6 +185,7 @@ export const Product = ({ const mapStateToProps = (state) => ({ book: state.book.info, grades: state.publicApi.grades, + isMobile: state.publicApi.isMobile, isDark: state.publicApi.isDark, userId: state.user.status.id, }); diff --git a/src/views/Products/layouts/Sidebar.js b/src/views/Products/layouts/Sidebar.js index d059160..8caec53 100644 --- a/src/views/Products/layouts/Sidebar.js +++ b/src/views/Products/layouts/Sidebar.js @@ -59,8 +59,8 @@ export const Sidebar = ({}) => { }, ] return
- - + +
; }; diff --git a/tailwind.config.js b/tailwind.config.js index e7fba29..0aa1760 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -49,6 +49,14 @@ module.exports = { gray70: "#707070", grayDB: "#DBDBDB", }), + // height: (theme) =>( { + // sm: '8px', + // md: '16px', + // lg: '24px', + // xl: '48px', + // h420 : '320px', + // full: '100%', + // }), borderColor: (theme) => ({ ...theme("colors"), blueC0: "#196EC0",