From 87e4752bd62c140a9274b80c5ff99bea45d4076f Mon Sep 17 00:00:00 2001 From: Gaurav Meena Date: Mon, 15 Sep 2025 07:34:00 +0530 Subject: [PATCH] addig color on selected --- src/Components/CityCards.jsx | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/Components/CityCards.jsx b/src/Components/CityCards.jsx index 99e4091..c55f6d6 100644 --- a/src/Components/CityCards.jsx +++ b/src/Components/CityCards.jsx @@ -1,12 +1,14 @@ -const CityCard = ({ city, onClick }) => { - return ( -
-

{city}

-
- ) +function CityCard({ city, onClick, isSelected }) { + return ( +
+ {city} +
+ ) } export default CityCard