From 05dd65cb8652f3b4c4b8468bac2b0084f14c67de Mon Sep 17 00:00:00 2001 From: dasosann Date: Thu, 26 Mar 2026 16:46:22 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=EB=A1=9C=EC=A7=81=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../album/detail/components/PhotoList.tsx | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/feature/album/detail/components/PhotoList.tsx b/src/feature/album/detail/components/PhotoList.tsx index f1803a8..375d903 100644 --- a/src/feature/album/detail/components/PhotoList.tsx +++ b/src/feature/album/detail/components/PhotoList.tsx @@ -9,8 +9,8 @@ import { useAlbumSortStore } from '@/store/useAlbumSortStore'; import { useAlbumTypeStore } from '@/store/useAlbumTypeStore'; import { useSelectedPhotosStore } from '@/store/useSelectedPhotosStore'; import { - type FetchNextPageOptions, - type InfiniteQueryObserverResult, + type FetchNextPageOptions, + type InfiniteQueryObserverResult, } from '@tanstack/react-query'; import { useRouter } from 'next/navigation'; import { useEffect, useMemo, useRef, useState } from 'react'; @@ -170,7 +170,6 @@ export default function PhotoList({ const isAllSelected = selectablePhotos.length > 0 && selectablePhotos.every(({ photoId }) => selectedPhotoIds.has(photoId)); - const hasAnySelected = selectedPhotos.length > 0; const selectableStorePhotos = useMemo( () => @@ -255,17 +254,7 @@ export default function PhotoList({
- - {hasAnySelected && ( + {isAllSelected ? ( + ) : ( + )}
From a78b5b9c050fde80401de9ec61a24be8340f1d29 Mon Sep 17 00:00:00 2001 From: dasosann Date: Thu, 26 Mar 2026 16:47:05 +0900 Subject: [PATCH 2/2] fix: prettier --- src/feature/album/detail/components/PhotoList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/feature/album/detail/components/PhotoList.tsx b/src/feature/album/detail/components/PhotoList.tsx index 375d903..5fb55a5 100644 --- a/src/feature/album/detail/components/PhotoList.tsx +++ b/src/feature/album/detail/components/PhotoList.tsx @@ -9,8 +9,8 @@ import { useAlbumSortStore } from '@/store/useAlbumSortStore'; import { useAlbumTypeStore } from '@/store/useAlbumTypeStore'; import { useSelectedPhotosStore } from '@/store/useSelectedPhotosStore'; import { - type FetchNextPageOptions, - type InfiniteQueryObserverResult, + type FetchNextPageOptions, + type InfiniteQueryObserverResult, } from '@tanstack/react-query'; import { useRouter } from 'next/navigation'; import { useEffect, useMemo, useRef, useState } from 'react';