File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,12 +15,6 @@ console.log(token);
1515const AllBoard = ( ) => {
1616 const [ postType ] = useState ( "BLIND" ) ;
1717 const [ currentPage , setCurrentPage ] = useState ( 0 ) ;
18- useEffect ( ( ) => {
19- localStorage . setItem ( "currentPage" , 0 ) ;
20- } , [ ] ) ;
21- useEffect ( ( ) => {
22- localStorage . setItem ( "currentPage" , currentPage ) ;
23- } , [ currentPage ] ) ;
2418 const [ size ] = useState ( 5 ) ; // 한 페이지당 게시물 수
2519
2620 const [ searchParams , setSearchParams ] = useState ( {
Original file line number Diff line number Diff line change @@ -17,13 +17,6 @@ const [postType] = useState("HOT");
1717 const [ currentPage , setCurrentPage ] = useState ( 0 ) ;
1818 const [ size ] = useState ( 5 ) ; // 한 페이지당 게시물 수
1919
20- useEffect ( ( ) => {
21- localStorage . setItem ( "currentPage" , 0 ) ;
22- } , [ ] ) ;
23- useEffect ( ( ) => {
24- localStorage . setItem ( "currentPage" , currentPage ) ;
25- } , [ currentPage ] ) ;
26-
2720 const [ searchParams , setSearchParams ] = useState ( {
2821 search :""
2922 } ) ;
Original file line number Diff line number Diff line change @@ -11,12 +11,6 @@ console.log(token);
1111const FoundBoard = ( ) => {
1212 const [ postType ] = useState ( "FOUND" ) ;
1313 const [ currentPage , setCurrentPage ] = useState ( 0 ) ;
14- useEffect ( ( ) => {
15- localStorage . setItem ( "currentPage" , 0 ) ;
16- } , [ ] ) ;
17- useEffect ( ( ) => {
18- localStorage . setItem ( "currentPage" , currentPage ) ;
19- } , [ currentPage ] ) ;
2014 const [ size ] = useState ( 5 ) ; // 한 페이지당 게시물 수
2115 const [ searchParams , setSearchParams ] = useState ( {
2216 musicalName : "" ,
Original file line number Diff line number Diff line change @@ -12,12 +12,6 @@ const LostBoard = () => {
1212
1313 const [ postType ] = useState ( "LOST" ) ;
1414 const [ currentPage , setCurrentPage ] = useState ( 0 ) ;
15- useEffect ( ( ) => {
16- localStorage . setItem ( "currentPage" , 0 ) ;
17- } , [ ] ) ;
18- useEffect ( ( ) => {
19- localStorage . setItem ( "currentPage" , currentPage ) ;
20- } , [ currentPage ] ) ;
2115 const [ size ] = useState ( 5 ) ; // 한 페이지당 게시물 수
2216const [ searchParams , setSearchParams ] = useState ( {
2317 musicalName : "" ,
Original file line number Diff line number Diff line change @@ -16,12 +16,6 @@ const MusicalBoard = () => {
1616
1717 const [ postType ] = useState ( "REVIEW" ) ;
1818 const [ currentPage , setCurrentPage ] = useState ( 0 ) ;
19- useEffect ( ( ) => {
20- localStorage . setItem ( "currentPage" , 0 ) ;
21- } , [ ] ) ;
22- useEffect ( ( ) => {
23- localStorage . setItem ( "currentPage" , currentPage ) ;
24- } , [ currentPage ] ) ;
2519 const [ size ] = useState ( 5 ) ; // 한 페이지당 게시물 수
2620 const [ searchParams , setSearchParams ] = useState ( {
2721 musicalName : "" ,
Original file line number Diff line number Diff line change @@ -15,12 +15,6 @@ const SeatsBoard = () => {
1515
1616 const [ postType ] = useState ( "SIGHT" ) ;
1717 const [ currentPage , setCurrentPage ] = useState ( 0 ) ;
18- useEffect ( ( ) => {
19- localStorage . setItem ( "currentPage" , 0 ) ;
20- } , [ ] ) ;
21- useEffect ( ( ) => {
22- localStorage . setItem ( "currentPage" , currentPage ) ;
23- } , [ currentPage ] ) ;
2418 const [ size ] = useState ( 5 ) ; // 한 페이지당 게시물 수
2519 const [ searchParams , setSearchParams ] = useState ( {
2620 musicalName : "" ,
You can’t perform that action at this time.
0 commit comments