mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 02:51:13 -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" />
|
<Factory className="w-10 h-10 text-primary" />
|
||||||
<h1 className="text-4xl font-bold">Manufacturers</h1>
|
<h1 className="text-4xl font-bold">Manufacturers</h1>
|
||||||
</div>
|
</div>
|
||||||
{(user && isModerator()) && (
|
<Button
|
||||||
<Button onClick={() => setIsCreateModalOpen(true)}>
|
onClick={() => {
|
||||||
<Plus className="w-4 h-4 mr-2" />
|
if (!user) {
|
||||||
Create Manufacturer
|
navigate('/auth');
|
||||||
</Button>
|
} else {
|
||||||
)}
|
setIsCreateModalOpen(true);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
className="gap-2"
|
||||||
|
>
|
||||||
|
<Plus className="w-4 h-4" />
|
||||||
|
Add Manufacturer
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-lg text-muted-foreground">
|
<p className="text-lg text-muted-foreground">
|
||||||
Explore the manufacturers behind your favorite rides and attractions
|
Explore the manufacturers behind your favorite rides and attractions
|
||||||
|
|||||||
Reference in New Issue
Block a user