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,11 +30,16 @@ export default function DashboardPage() {
|
||||
<div className="max-w-7xl mx-auto">
|
||||
<h1 className="text-3xl font-bold mb-8">Dashboard</h1>
|
||||
|
||||
<div className="mb-8">
|
||||
<h2 className="text-xl font-semibold">Your Events</h2>
|
||||
<p className="text-gray-500 dark:text-gray-400">
|
||||
Manage your scheduled events.
|
||||
</p>
|
||||
<div className="flex items-center justify-between mb-8">
|
||||
<div>
|
||||
<h2 className="text-xl font-semibold">Your Events</h2>
|
||||
<p className="text-gray-500 dark:text-gray-400">
|
||||
Manage your scheduled events.
|
||||
</p>
|
||||
</div>
|
||||
<Button asChild>
|
||||
<Link href="/dashboard/events/new">+ Add New Event</Link>
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
{isLoadingUserEvents && (
|
||||
|
||||
Reference in New Issue
Block a user