File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { LazyLoadImage } from "react-lazy-load-image-component";
8
8
import { Link , useNavigate } from "react-router-dom" ;
9
9
import { useDeleteSwag } from "../../hooks/Mutations/shop/useCartSwagg" ;
10
10
import formatPrice from "../../utilities/formatPrice" ;
11
+ import { categoryColors } from "../../utilities/utils" ;
11
12
12
13
function CartDrawer ( { open, setOpen } ) {
13
14
const navigate = useNavigate ( ) ;
@@ -148,7 +149,12 @@ function CartDrawer({ open, setOpen }) {
148
149
< div className = "flex flex-row justify-between items-center mb-4" >
149
150
< div className = "flex flex-col space-y-2 justify-start" >
150
151
< div className = "flex justify-between" >
151
- < p className = "flex justify-between items-center gap-1 font-medium bg-[#FEF3F2] text-[#B42318] text-sm rounded-full px-2 py-1" >
152
+ < p
153
+ style = { categoryColors (
154
+ cartProduct . category
155
+ ) }
156
+ className = "flex justify-between items-center gap-1 font-medium bg-[#FEF3F2] text-[#B42318] text-sm rounded-full px-2 py-1"
157
+ >
152
158
< CiShoppingTag />
153
159
{ cartProduct . category }
154
160
</ p >
You can’t perform that action at this time.
0 commit comments