This commit is contained in:
2025-06-04 15:49:10 +05:00
parent fc84e48c4e
commit 14706dd856
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
VITE_API_URL=http://192.168.1.170:3000
VITE_API_URL=http://192.168.1.204:3000
+6 -3
View File
@@ -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>
))}