Skip to content

Commit

Permalink
feat: 메인 load more 버튼 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
Byunseoyoon committed Jun 2, 2024
1 parent 63f228f commit bfe92ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/component/main/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import "./css/Main.css";
import TpBox from "./TpBox";
import WpBox from "./WpBox";
import apiURLs from "../../apiURL";
import { useNavigate } from "react-router-dom";

SwiperCore.use([Autoplay]);

const Main = () => {
const navigate = useNavigate();
const [images, setImages] = useState([]);
const [top3Popups, setTop3Popups] = useState([]);
const [inProgressPopups, setInProgressPopups] = useState([]); // 진행중인 팝업 데이터 저장용 상태
Expand Down Expand Up @@ -135,7 +137,7 @@ const Main = () => {
))}
</div>
<div className="main-bottom">
<button className="mainBtn">Load more</button>
<button className="mainBtn" onClick={()=>{navigate("/popup");}}>Load more</button>
</div>
</div>
);
Expand Down

0 comments on commit bfe92ae

Please sign in to comment.