Site Page

This commit is contained in:
headlesdev
2025-05-18 13:31:25 +02:00
parent 20dc406fd1
commit afd0b65f8c
3 changed files with 78 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
"use client"
import { useRouter } from "next/navigation";
interface SitesProps {
id: string;
name: string;
@@ -6,6 +9,7 @@ interface SitesProps {
}
export default function Sites({ id, name, description, networks }: SitesProps) {
const router = useRouter();
return (
<div className="card bg-base-200 shadow-xl">
<div className="card-body">
@@ -15,7 +19,7 @@ export default function Sites({ id, name, description, networks }: SitesProps) {
<p>Networks: {networks.join(', ')}</p>
)}
<div className="card-actions justify-end">
<button className="btn btn-secondary btn-sm btn-outline">View</button>
<button className="btn btn-secondary btn-sm btn-outline" onClick={() => router.push(`/dashboard/sites/${id}`)}>View</button>
</div>
</div>
</div>