Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
opticSquid committed May 16, 2021
2 parents a3e6ab0 + c80521d commit 4c2895a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/assets/styles/homePage.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
18 changes: 9 additions & 9 deletions src/components/homePage/Cards/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 ? (
// <div className="status available">Available</div>
// ) : (
Expand Down Expand Up @@ -208,18 +208,18 @@ function Card(props) {
More Details
</div>

<div>
{/* <div>
<FontAwesomeIcon icon={faStar} color="#FFFF00" />
<span>
{props?.rating?.length > 0
? (ratingSum / props?.rating?.length).toFixed(2)
: (5.0).toString()}
</span>
</div>
</div> */}

<div>
{/* <div>
<FontAwesomeIcon icon={faCheck} color="#fff" />
</div>
</div> */}
</div>
</motion.div>
);
Expand Down

0 comments on commit 4c2895a

Please sign in to comment.