Add "Add New Event" button to dashboard
This update introduces a button to the "Your Events" section of the dashboard, allowing users to quickly navigate to the event creation page. The enhancement improves user flow and accessibility for managing events.
This commit is contained in:
@@ -30,12 +30,17 @@ export default function DashboardPage() {
|
|||||||
<div className="max-w-7xl mx-auto">
|
<div className="max-w-7xl mx-auto">
|
||||||
<h1 className="text-3xl font-bold mb-8">Dashboard</h1>
|
<h1 className="text-3xl font-bold mb-8">Dashboard</h1>
|
||||||
|
|
||||||
<div className="mb-8">
|
<div className="flex items-center justify-between mb-8">
|
||||||
|
<div>
|
||||||
<h2 className="text-xl font-semibold">Your Events</h2>
|
<h2 className="text-xl font-semibold">Your Events</h2>
|
||||||
<p className="text-gray-500 dark:text-gray-400">
|
<p className="text-gray-500 dark:text-gray-400">
|
||||||
Manage your scheduled events.
|
Manage your scheduled events.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<Button asChild>
|
||||||
|
<Link href="/dashboard/events/new">+ Add New Event</Link>
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
|
||||||
{isLoadingUserEvents && (
|
{isLoadingUserEvents && (
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user