mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 16:31:13 -05:00
Refactor code structure and remove redundant changes
This commit is contained in:
16
src-old/components/parks/ParkCardMemo.tsx
Normal file
16
src-old/components/parks/ParkCardMemo.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Memoized Park Card Component
|
||||
* Optimized for grid rendering performance
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { ParkCard } from './ParkCard';
|
||||
import type { Park } from '@/types/database';
|
||||
|
||||
interface ParkCardMemoProps {
|
||||
park: Park;
|
||||
}
|
||||
|
||||
export const ParkCardMemo = React.memo<ParkCardMemoProps>(ParkCard);
|
||||
|
||||
ParkCardMemo.displayName = 'ParkCardMemo';
|
||||
Reference in New Issue
Block a user