restart session logic
This commit is contained in:
@@ -24,13 +24,15 @@ function TableSelector({
|
||||
onSelect(table);
|
||||
}}
|
||||
className={clsx(
|
||||
"rounded-[0.833vw] outline-none p-[1.111vw] space-y-[0.278vw] disabled:text-[#D6D6D6] disabled:cursor-not-allowed enabled:cursor-pointer enabled:hover:bg-[#F0F0F0] transition-colors shrink-0",
|
||||
"rounded-[0.833vw] outline-none p-[1.111vw] space-y-[0.278vw] disabled:text-[#D6D6D6] enabled:cursor-pointer disabled:!cursor-not-allowed enabled:hover:bg-[#F0F0F0] transition-colors shrink-0",
|
||||
selectedTable?.id === table.id && "bg-[#F6F6F6]"
|
||||
)}
|
||||
>
|
||||
<p className="button-m font-medium">{table.name}</p>
|
||||
<p className="button-m font-medium text-left">{table.name}</p>
|
||||
{table.status === "offline" ? (
|
||||
<p className="text-[#D6D6D6] font-medium caption-s">Недоступен</p>
|
||||
<p className="text-[#D6D6D6] font-medium caption-s text-left">
|
||||
Недоступен
|
||||
</p>
|
||||
) : table.sessions &&
|
||||
table.sessions.length > 0 &&
|
||||
table.sessions[0].status !== "ended" ? (
|
||||
|
||||
Reference in New Issue
Block a user