revert: test something

This commit is contained in:
2026-09-30 18:48:44 +07:00 Unverified
parent b549a390cd
commit dfb2ac635e
+21 -26
View File
@@ -299,32 +299,27 @@ export default async function EndgamePage({
</RulesDialog>
<TooltipContent>อ่านกฏการลงคิว</TooltipContent>
</Tooltip>
{/* {q && ( */}
<AlertDialog>
<AlertDialogTrigger>
<Button
variant="destructive"
type="button"
hidden={!q}
style={{ opacity: q ? 1 : 0 }}
>
<X /> ยกเลิก
</Button>
</AlertDialogTrigger>
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>แน่ใจหรอ</AlertDialogTitle>
<AlertDialogDescription>
ต้องการยกเลิกการลงคิวของคุณหรือไม่
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>ไม่ยกเลิก</AlertDialogCancel>
<CancelButton sid={sid?.value ?? ""} />
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
{/* )} */}
{q && (
<AlertDialog>
<AlertDialogTrigger>
<Button variant="destructive" type="button">
<X /> ยกเลิก
</Button>
</AlertDialogTrigger>
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>แน่ใจหรอ</AlertDialogTitle>
<AlertDialogDescription>
ต้องการยกเลิกการลงคิวของคุณหรือไม่
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>ไม่ยกเลิก</AlertDialogCancel>
<CancelButton sid={sid?.value ?? ""} />
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
)}
<Suspense>
<LiveButton />
</Suspense>