chore: Refactor ThumbnailList component to use memoization

This commit is contained in:
yoosangwook 2024-08-21 13:14:26 +09:00
parent 5c14529e25
commit db333e06e0

View File

@ -1,6 +1,7 @@
import { Card, Image } from '@nextui-org/react' import { Card, Image } from '@nextui-org/react'
import { memo } from 'react'
export default function ThumbnailList(props) { function ThumbnailList(props) {
const { thumbnails } = props const { thumbnails } = props
return ( return (
@ -16,3 +17,5 @@ export default function ThumbnailList(props) {
</> </>
) )
} }
export default memo(ThumbnailList)