From 7c5811974f10353406fd33bda3e450c5af84dad4 Mon Sep 17 00:00:00 2001 From: Vikas Kumar Saw Date: Sat, 15 May 2021 16:18:36 +0530 Subject: [PATCH] removed rating and verify check --- src/assets/styles/homePage.css | 2 +- src/components/homePage/Cards/Card.js | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/assets/styles/homePage.css b/src/assets/styles/homePage.css index cc9703d..e185a1a 100644 --- a/src/assets/styles/homePage.css +++ b/src/assets/styles/homePage.css @@ -277,7 +277,7 @@ color: #707070; font-size: 0.9rem; display: flex; - justify-content: space-between; + justify-content: center; align-items: center; font-weight: lighter; } diff --git a/src/components/homePage/Cards/Card.js b/src/components/homePage/Cards/Card.js index 184048b..4352746 100644 --- a/src/components/homePage/Cards/Card.js +++ b/src/components/homePage/Cards/Card.js @@ -3,10 +3,10 @@ import { motion } from "framer-motion"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Link } from "react-router-dom"; import { - faCheck, + // faCheck, faPhoneAlt, faMapMarkerAlt, - faStar, + // faStar, faAngleDown, faSyringe, faPumpMedical, @@ -30,9 +30,9 @@ function Card(props) { else if (secdiff >= 60) return `${Math.round(secdiff / 60)} mins`; else return `${Math.round(secdiff)} seconds`; }; - const ratingSum = props?.rating?.reduce(function (a, b) { - return a + b; - }, 0); + // const ratingSum = props?.rating?.reduce(function (a, b) { + // return a + b; + // }, 0); // const isAvailable = props.available ? ( //
Available
// ) : ( @@ -208,18 +208,18 @@ function Card(props) { More Details -
+ {/*
{props?.rating?.length > 0 ? (ratingSum / props?.rating?.length).toFixed(2) : (5.0).toString()} -
+
*/} -
+ {/*
-
+
*/} );