mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 05:11:14 -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}
|
Back to {ride.park?.name}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
{user && (
|
<Button
|
||||||
<Button
|
variant="outline"
|
||||||
variant="outline"
|
onClick={() => {
|
||||||
onClick={() => setIsEditModalOpen(true)}
|
if (!user) {
|
||||||
>
|
navigate('/auth');
|
||||||
<Edit className="w-4 h-4 mr-2" />
|
} else {
|
||||||
Edit Ride
|
setIsEditModalOpen(true);
|
||||||
</Button>
|
}
|
||||||
)}
|
}}
|
||||||
|
>
|
||||||
|
<Edit className="w-4 h-4 mr-2" />
|
||||||
|
Edit Ride
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Hero Section */}
|
{/* Hero Section */}
|
||||||
|
|||||||
Reference in New Issue
Block a user