Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions pages/favorite/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ const FavoritePage = ({
const [totalCount, setTotalCount] = useState(initialTotalCount);

useFetchLinks(setLinkCardList, setIsLoading);
//

// 마이링크 페이지로 돌아감
const returnButton = () => {
Expand All @@ -86,10 +85,9 @@ const FavoritePage = ({
👈 마이링크로 돌아가기
</button>
</div>

{/* 로딩 중일 때 */}
{isLoading ? (
<div className="text-center">
<div className="min-h-[100px] h-full pt-20 pb-20">
<LoadingSpinner />
</div>
) : linkCardList.length > 0 ? (
Expand Down
4 changes: 3 additions & 1 deletion pages/link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ const LinkPage = ({
)}
</div>
{isLoading ? (
<LoadingSpinner /> // 로딩 상태일 때 로딩 스피너 표시
<div className="min-h-[100px] h-full pt-20 pb-20">
<LoadingSpinner />
</div>
) : linkCardList.length !== 0 ? (
<>
<CardsLayout>
Expand Down
Loading