File tree Expand file tree Collapse file tree
src/pages/MyPage/HistoryPage/TabPage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { createRangeArray } from '@/utils/array';
1414import { useQueryClient } from '@tanstack/react-query' ;
1515import React , { useState } from 'react' ;
1616import { bookmarksBtnContainer } from './BookmarksPage.style' ;
17+ import { v4 as uuidv4 } from 'uuid' ;
1718
1819const BookmarksPage = ( ) => {
1920 const [ selectedPage , setSelectedPage ] = useState ( 1 ) ;
@@ -63,7 +64,7 @@ const BookmarksPage = () => {
6364 return (
6465 < ItemMyBookmarksPosts
6566 id = { item . postId . toString ( ) }
66- key = { item . postId }
67+ key = { uuidv4 ( ) }
6768 item = { item }
6869 isChecked = { checkItems . includes ( item . postId . toString ( ) ) }
6970 handleChecked = { handleSingleChecked }
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { MyCommentsPostsContentType } from '@/types/mypage';
99import { createRangeArray } from '@/utils/array' ;
1010import { useQueryClient } from '@tanstack/react-query' ;
1111import React , { useState } from 'react' ;
12+ import { v4 as uuidv4 } from 'uuid' ;
1213
1314const CommentsPage = ( ) => {
1415 const [ selectedPage , setSelectedPage ] = useState ( 1 ) ;
@@ -34,7 +35,7 @@ const CommentsPage = () => {
3435 return (
3536 < ItemMyCommentsPosts
3637 id = { item . postId . toString ( ) }
37- key = { item . postId }
38+ key = { uuidv4 ( ) }
3839 item = { item }
3940 />
4041 ) ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { MyPostsContentType } from '@/types/mypage';
99import { createRangeArray } from '@/utils/array' ;
1010import { useQueryClient } from '@tanstack/react-query' ;
1111import React , { useState } from 'react' ;
12+ import { v4 as uuidv4 } from 'uuid' ;
1213
1314const PostsPage = ( ) => {
1415 const [ selectedPage , setSelectedPage ] = useState ( 1 ) ;
@@ -32,7 +33,7 @@ const PostsPage = () => {
3233 return (
3334 < ItemMyPosts
3435 id = { item . postId . toString ( ) }
35- key = { item . postId }
36+ key = { uuidv4 ( ) }
3637 item = { item }
3738 />
3839 ) ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { MyVotedPostsContentType } from '@/types/mypage';
99import { createRangeArray } from '@/utils/array' ;
1010import { useQueryClient } from '@tanstack/react-query' ;
1111import React , { useState } from 'react' ;
12+ import { v4 as uuidv4 } from 'uuid' ;
1213
1314const VotedPostsPage = ( ) => {
1415 const [ selectedPage , setSelectedPage ] = useState ( 1 ) ;
@@ -32,7 +33,7 @@ const VotedPostsPage = () => {
3233 return (
3334 < ItemMyVotedPosts
3435 id = { item . postId . toString ( ) }
35- key = { item . postId }
36+ key = { uuidv4 ( ) }
3637 item = { item }
3738 />
3839 ) ;
You can’t perform that action at this time.
0 commit comments