mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: router.push
This commit is contained in:
parent
3e6e1f1e8a
commit
6be6e30fd7
@ -36,11 +36,12 @@ export default function ServerCard({
|
||||
"flex flex-col items-center justify-start gap-3 p-3 md:px-5 lg:flex-row"
|
||||
}
|
||||
>
|
||||
<Popover>
|
||||
<PopoverTrigger asChild>
|
||||
<section
|
||||
className="grid items-center gap-2 lg:w-28"
|
||||
className="grid items-center gap-2 lg:w-28 cursor-pointer"
|
||||
style={{ gridTemplateColumns: "auto auto 1fr" }}
|
||||
onClick={() => {
|
||||
router.push(`/${locale}/detail/${id}`);
|
||||
}}
|
||||
>
|
||||
<span className="h-2 w-2 shrink-0 rounded-full bg-green-500 self-center"></span>
|
||||
<div
|
||||
@ -59,12 +60,8 @@ export default function ServerCard({
|
||||
>
|
||||
{name}
|
||||
</p>
|
||||
|
||||
</section>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent side="top">
|
||||
<ServerCardPopover status={props.status} host={props.host} />
|
||||
</PopoverContent>
|
||||
</Popover>
|
||||
<div
|
||||
onClick={() => {
|
||||
router.push(`/${locale}/network/${id}`);
|
||||
|
Loading…
Reference in New Issue
Block a user