Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions src/components/orders/TableCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@ const TableCard: React.FC<TableCardProps> = ({ table }) => {
</div>
)}

{/* 가장 최근 주문 건이 조리완료인 테이블 */}
{!table.orderInfo && (
<div
className={`cursor-pointer select-none w-28 h-28 md:w-36 md:h-36 p-3 bg-gray-200 rounded-xl flex flex-col justify-between text-secondary-700 hover:bg-gray-300`}
onClick={() => openTableVisualDetail({ tableNumIndex: table.tableNumIndex })}
>
{/* 테이블 번호 */}
<div className="font-semibold text-center">테이블 {getCustomTableNum(table.tableNumIndex)}번</div>
<div className="flex flex-col items-end">
{/* 주문상태 */}
<div className={`text-center w-full rounded-full text-secondary-600 font-medium`}>최근 1시간 내</div>
<div className={`text-center w-full rounded-full text-secondary-600 font-medium`}>주문 건 없음</div>
{/* 최근 주문이 없는 테이블 */}
{!table.orderInfo && (
<div
className={`cursor-pointer select-none w-28 h-28 md:w-36 md:h-36 p-3 bg-gray-200 rounded-xl flex flex-col justify-between text-secondary-700 hover:bg-gray-300`}
onClick={() => openTableVisualDetail({ tableNumIndex: table.tableNumIndex })}
>
{/* 테이블 번호 */}
<div className="font-semibold text-center">테이블 {getCustomTableNum(table.tableNumIndex)}번</div>
<div className="flex flex-col items-end">
{/* 최근 주문 없음 안내 */}
<div className={`text-center w-full rounded-full text-secondary-600 font-medium`}>최근 1시간 내</div>
<div className={`text-center w-full rounded-full text-secondary-600 font-medium`}>주문 건 없음</div>
</div>
</div>
</div>
)}
)}
</>
);
};

export default TableCard;
export default TableCard;