@@ -2,6 +2,7 @@ import ArrowRight from "../../assets/arrow_back.svg?react";
22import { useState } from "react" ;
33import { PaymentCheckModal , CookedModal } from "./OrderPageModal" ;
44import type { MenuNamesAndQuantities } from "../../types/order" ;
5+ import { getTableBackgroundColor } from "../../utils/tableColors" ;
56
67interface PaymentCardProps {
78 orderId : number ;
@@ -40,7 +41,10 @@ const PaymentCard = ({
4041 onClick = { onClick }
4142 >
4243 < div className = "flex flex-row items-center" >
43- < div className = "flex rounded-full bg-navy-50 w-9 h-9 items-center justify-center text-title-18-semibold text-white-100" >
44+ < div
45+ className = "flex rounded-full w-9 h-9 items-center justify-center text-title-18-semibold text-white-100"
46+ style = { { backgroundColor : getTableBackgroundColor ( tableNumber ) } }
47+ >
4448 { tableNumber }
4549 </ div >
4650
@@ -135,7 +139,10 @@ const PaymentDetail = ({
135139 </ div >
136140
137141 < div className = "flex flex-row mt-6 gap-2.5" >
138- < div className = "flex rounded-full bg-navy-50 w-9 h-9 items-center justify-center text-title-18-semibold text-white-100" >
142+ < div
143+ className = "flex rounded-full w-9 h-9 items-center justify-center text-title-18-semibold text-white-100"
144+ style = { { backgroundColor : getTableBackgroundColor ( tableNumber ) } }
145+ >
139146 { tableNumber }
140147 </ div >
141148 < div className = "flex text-title-18-semibold text-black-90 items-center" >
@@ -238,7 +245,10 @@ const CookCard = ({ tableNumber, menuNamesAndQuantities }: CookCardProps) => {
238245 } `}
239246 >
240247 < div className = "flex flex-row gap-2.5" >
241- < div className = "flex bg-[#6C707A] w-9 h-9 items-center justify-center rounded-full text-title-18-semibold text-white-100" >
248+ < div
249+ className = "flex w-9 h-9 items-center justify-center rounded-full text-title-18-semibold text-white-100"
250+ style = { { backgroundColor : getTableBackgroundColor ( tableNumber ) } }
251+ >
242252 { tableNumber }
243253 </ div >
244254 < div className = "flex flex-col gap-3.5 text-16-semibold text-black-80" >
0 commit comments