mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 00:31:13 -05:00
Refactor code to address issues
This commit is contained in:
@@ -24,6 +24,7 @@ import { submitCompanyCreation } from '@/lib/companyHelpers';
|
||||
import { useAuthModal } from '@/hooks/useAuthModal';
|
||||
import { getErrorMessage } from '@/lib/errorHandler';
|
||||
import { useDocumentTitle } from '@/hooks/useDocumentTitle';
|
||||
import { useOpenGraph } from '@/hooks/useOpenGraph';
|
||||
|
||||
export default function Designers() {
|
||||
useDocumentTitle('Designers');
|
||||
@@ -164,6 +165,15 @@ export default function Designers() {
|
||||
});
|
||||
}, [companies, searchQuery, filters]);
|
||||
|
||||
useOpenGraph({
|
||||
title: 'Ride Designers - ThrillWiki',
|
||||
description: `Browse ${filteredCompanies.length} ride designers worldwide`,
|
||||
imageUrl: filteredCompanies[0]?.banner_image_url,
|
||||
imageId: filteredCompanies[0]?.banner_image_id,
|
||||
type: 'website',
|
||||
enabled: !loading
|
||||
});
|
||||
|
||||
if (loading) {
|
||||
return (
|
||||
<div className="min-h-screen bg-background">
|
||||
|
||||
Reference in New Issue
Block a user