mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-29 16:14:43 +00:00
Site Page
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user