Updated dashbpard and added sonner
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
export default function DashboardListPage() {
|
||||
import { UrlsDataTable } from "@/components/dashboard/urls-data-table"
|
||||
import { getAllUrls } from "@/lib/db/urls"
|
||||
|
||||
export default async function DashboardListPage() {
|
||||
const urls = await getAllUrls()
|
||||
|
||||
return (
|
||||
<div className="p-6">
|
||||
<h1 className="text-2xl font-bold text-gray-900 mb-4">List</h1>
|
||||
<p className="text-gray-600">This is the list page where you can view all items.</p>
|
||||
<div className="mb-6">
|
||||
<h1 className="text-2xl font-bold text-gray-900 mb-2">URLs</h1>
|
||||
<p className="text-gray-600">Manage all your shortened URLs.</p>
|
||||
</div>
|
||||
<UrlsDataTable data={urls} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user