Skip to content

Commit

Permalink
Merge pull request #18 from novice1993/feat/InfiniteScroll
Browse files Browse the repository at this point in the history
[Feat] 무한 스크롤 구현
  • Loading branch information
novice1993 authored Jul 23, 2023
2 parents 6e96357 + c235e4c commit 4e9225d
Show file tree
Hide file tree
Showing 38 changed files with 604 additions and 409 deletions.
File renamed without changes.
70 changes: 0 additions & 70 deletions coz-shopping/README.md

This file was deleted.

80 changes: 0 additions & 80 deletions coz-shopping/src/Page/BookmarkListPage.js

This file was deleted.

92 changes: 0 additions & 92 deletions coz-shopping/src/Page/ItemListPage.js

This file was deleted.

56 changes: 0 additions & 56 deletions coz-shopping/src/Page/MainPage.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions coz-shopping/src/App.css → src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ main {
}

footer {
flex: 1 0 0;
flex: 0.7 0 0;
}

div {
/* div {
border: 1px solid black;
}
} */

5 changes: 3 additions & 2 deletions coz-shopping/src/App.js → src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import './App.css';
import { useEffect, useState } from 'react';
import { useState } from 'react';
import MainPage from './Page/MainPage';
import ItemListPage from './Page/ItemListPage';
import BookmarkListPage from './Page/BookmarkListPage';
Expand All @@ -9,8 +9,9 @@ import { BrowserRouter, Routes, Route } from 'react-router-dom';
function App() {

const bookmarkData = JSON.parse(localStorage.getItem('bookmark'));
const [bookmark_List, setBookmark_List] = useState(bookmarkData); // 북마크 리스트
const [bookmark_List, setBookmark_List] = useState( (bookmarkData !== null) ? bookmarkData : [] );


return (
<BrowserRouter>
<Routes>
Expand Down
File renamed without changes.
Loading

0 comments on commit 4e9225d

Please sign in to comment.