mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 16:31:12 -05:00
Refactor code structure and remove redundant changes
This commit is contained in:
23
src-old/components/companies/DesignerPhotoGallery.tsx
Normal file
23
src-old/components/companies/DesignerPhotoGallery.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { EntityPhotoGallery } from '@/components/upload/EntityPhotoGallery';
|
||||
|
||||
interface DesignerPhotoGalleryProps {
|
||||
designerId: string;
|
||||
designerName: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for designer photo galleries
|
||||
* Uses the generic EntityPhotoGallery component internally
|
||||
*/
|
||||
export function DesignerPhotoGallery({
|
||||
designerId,
|
||||
designerName
|
||||
}: DesignerPhotoGalleryProps) {
|
||||
return (
|
||||
<EntityPhotoGallery
|
||||
entityId={designerId}
|
||||
entityType="designer"
|
||||
entityName={designerName}
|
||||
/>
|
||||
);
|
||||
}
|
||||
23
src-old/components/companies/ManufacturerPhotoGallery.tsx
Normal file
23
src-old/components/companies/ManufacturerPhotoGallery.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { EntityPhotoGallery } from '@/components/upload/EntityPhotoGallery';
|
||||
|
||||
interface ManufacturerPhotoGalleryProps {
|
||||
manufacturerId: string;
|
||||
manufacturerName: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for manufacturer photo galleries
|
||||
* Uses the generic EntityPhotoGallery component internally
|
||||
*/
|
||||
export function ManufacturerPhotoGallery({
|
||||
manufacturerId,
|
||||
manufacturerName
|
||||
}: ManufacturerPhotoGalleryProps) {
|
||||
return (
|
||||
<EntityPhotoGallery
|
||||
entityId={manufacturerId}
|
||||
entityType="manufacturer"
|
||||
entityName={manufacturerName}
|
||||
/>
|
||||
);
|
||||
}
|
||||
23
src-old/components/companies/OperatorPhotoGallery.tsx
Normal file
23
src-old/components/companies/OperatorPhotoGallery.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { EntityPhotoGallery } from '@/components/upload/EntityPhotoGallery';
|
||||
|
||||
interface OperatorPhotoGalleryProps {
|
||||
operatorId: string;
|
||||
operatorName: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for operator photo galleries
|
||||
* Uses the generic EntityPhotoGallery component internally
|
||||
*/
|
||||
export function OperatorPhotoGallery({
|
||||
operatorId,
|
||||
operatorName
|
||||
}: OperatorPhotoGalleryProps) {
|
||||
return (
|
||||
<EntityPhotoGallery
|
||||
entityId={operatorId}
|
||||
entityType="operator"
|
||||
entityName={operatorName}
|
||||
/>
|
||||
);
|
||||
}
|
||||
23
src-old/components/companies/PropertyOwnerPhotoGallery.tsx
Normal file
23
src-old/components/companies/PropertyOwnerPhotoGallery.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { EntityPhotoGallery } from '@/components/upload/EntityPhotoGallery';
|
||||
|
||||
interface PropertyOwnerPhotoGalleryProps {
|
||||
propertyOwnerId: string;
|
||||
propertyOwnerName: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for property owner photo galleries
|
||||
* Uses the generic EntityPhotoGallery component internally
|
||||
*/
|
||||
export function PropertyOwnerPhotoGallery({
|
||||
propertyOwnerId,
|
||||
propertyOwnerName
|
||||
}: PropertyOwnerPhotoGalleryProps) {
|
||||
return (
|
||||
<EntityPhotoGallery
|
||||
entityId={propertyOwnerId}
|
||||
entityType="property_owner"
|
||||
entityName={propertyOwnerName}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user