upd
This commit is contained in:
@@ -1 +1 @@
|
||||
VITE_API_URL=http://192.168.1.170:3000
|
||||
VITE_API_URL=http://192.168.1.204:3000
|
||||
@@ -13,6 +13,7 @@ function TableSelector({
|
||||
selectedTable,
|
||||
onSelect,
|
||||
}: TableSelectorProps) {
|
||||
console.log(tables);
|
||||
return (
|
||||
<div className="flex gap-[0.556vw] overflow-x-auto -mx-[1.111vw] pl-[1.111vw] [scrollbar-width:none]">
|
||||
{tables.map((table) => (
|
||||
@@ -31,15 +32,17 @@ function TableSelector({
|
||||
<p className="button-m font-medium">{table.name}</p>
|
||||
{table.status === "offline" ? (
|
||||
<p className="text-[#D6D6D6] font-medium caption-s">Недоступен</p>
|
||||
) : table.sessions?.[0].status === "ended" ? (
|
||||
<p className="text-[#29AF61] caption-s font-medium">Свободен</p>
|
||||
) : (
|
||||
) : table.sessions &&
|
||||
table.sessions.length > 0 &&
|
||||
table.sessions[0].status !== "ended" ? (
|
||||
<div className="flex gap-[0.139vw] items-center">
|
||||
<span className="size-[0.883vw] text-[#7B60F3]">
|
||||
<LightningIcon />
|
||||
</span>
|
||||
<p className="caption-s text-[#7B60F3] font-medium">Идет сеанс</p>
|
||||
</div>
|
||||
) : (
|
||||
<p className="text-[#29AF61] caption-s font-medium">Свободен</p>
|
||||
)}
|
||||
</button>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user