diff --git a/src/app/subscribe/components/Feed/FeedContent.tsx b/src/app/subscribe/components/Feed/FeedContent.tsx
index 91dc70f..1411f2a 100644
--- a/src/app/subscribe/components/Feed/FeedContent.tsx
+++ b/src/app/subscribe/components/Feed/FeedContent.tsx
@@ -17,14 +17,14 @@ export default function FeedContent({
{blogPostPreviews?.map(({ blogItem, postItem }) => {
- const { postId, title, preview, photo } = postItem;
+ const { postId, title, profile } = postItem;
return (
);
diff --git a/src/app/subscribe/components/SubscribeFetcher/types.ts b/src/app/subscribe/components/SubscribeFetcher/types.ts
index 4fb33b2..c193c57 100644
--- a/src/app/subscribe/components/SubscribeFetcher/types.ts
+++ b/src/app/subscribe/components/SubscribeFetcher/types.ts
@@ -18,7 +18,7 @@ export interface FollowPostResponse extends PaginationInfo {
blogId: number;
postId: number;
title: string;
- preview: string;
+ profile: string;
photo: string;
};
}>;
diff --git a/src/components/Common/Pagination/usePagination.ts b/src/components/Common/Pagination/usePagination.ts
index a5a7dbb..3655d54 100644
--- a/src/components/Common/Pagination/usePagination.ts
+++ b/src/components/Common/Pagination/usePagination.ts
@@ -39,21 +39,23 @@ export function usePagination({ ...props }: UsePaginationProp) {
const pageSize = 10;
const Component = as || 'div';
- const startPage = useMemo(
- () => Math.floor((page - 1) / pageSize) * pageSize + 1,
- [page, pageSize],
- );
+ const startPage = useMemo(() => {
+ if (total <= 1) return 1;
+ return Math.floor((page - 1) / pageSize) * pageSize + 1;
+ }, [page, pageSize, total]);
- const endPage = useMemo(
- () => Math.min(startPage + pageSize - 1, total),
- [total, pageSize, startPage],
- );
+ const endPage = useMemo(() => {
+ if (total <= 1) return 1;
+ return Math.min(startPage + pageSize - 1, total);
+ }, [total, pageSize, startPage]);
- const displayedPages = useMemo(
- () =>
- Array.from({ length: endPage - startPage + 1 }, (_, i) => startPage + i),
- [startPage, endPage],
- );
+ const displayedPages = useMemo(() => {
+ if (total <= 1) return [1];
+ return Array.from(
+ { length: endPage - startPage + 1 },
+ (_, i) => startPage + i,
+ );
+ }, [startPage, endPage, total]);
const getBaseProps = useCallback(
() => ({
diff --git a/src/components/MouseImageGallery/index.tsx b/src/components/MouseImageGallery/index.tsx
index d2220b3..97ddbc1 100644
--- a/src/components/MouseImageGallery/index.tsx
+++ b/src/components/MouseImageGallery/index.tsx
@@ -103,7 +103,11 @@ export default function MouseImageGallery() {
-
+