mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 13:51:14 -05:00
Update "Add Manufacturer" button
This commit is contained in:
@@ -130,12 +130,19 @@ export default function Manufacturers() {
|
||||
<Factory className="w-10 h-10 text-primary" />
|
||||
<h1 className="text-4xl font-bold">Manufacturers</h1>
|
||||
</div>
|
||||
{(user && isModerator()) && (
|
||||
<Button onClick={() => setIsCreateModalOpen(true)}>
|
||||
<Plus className="w-4 h-4 mr-2" />
|
||||
Create Manufacturer
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
onClick={() => {
|
||||
if (!user) {
|
||||
navigate('/auth');
|
||||
} else {
|
||||
setIsCreateModalOpen(true);
|
||||
}
|
||||
}}
|
||||
className="gap-2"
|
||||
>
|
||||
<Plus className="w-4 h-4" />
|
||||
Add Manufacturer
|
||||
</Button>
|
||||
</div>
|
||||
<p className="text-lg text-muted-foreground">
|
||||
Explore the manufacturers behind your favorite rides and attractions
|
||||
|
||||
Reference in New Issue
Block a user