mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 03:31:13 -05:00
Update ride edit button visibility
This commit is contained in:
@@ -253,15 +253,19 @@ export default function RideDetail() {
|
||||
Back to {ride.park?.name}
|
||||
</Button>
|
||||
|
||||
{user && (
|
||||
<Button
|
||||
variant="outline"
|
||||
onClick={() => setIsEditModalOpen(true)}
|
||||
>
|
||||
<Edit className="w-4 h-4 mr-2" />
|
||||
Edit Ride
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
variant="outline"
|
||||
onClick={() => {
|
||||
if (!user) {
|
||||
navigate('/auth');
|
||||
} else {
|
||||
setIsEditModalOpen(true);
|
||||
}
|
||||
}}
|
||||
>
|
||||
<Edit className="w-4 h-4 mr-2" />
|
||||
Edit Ride
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
{/* Hero Section */}
|
||||
|
||||
Reference in New Issue
Block a user