Skip to content

Commit

Permalink
Fix: 안쓰는 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
imi21123 committed Mar 7, 2024
1 parent 9608460 commit 499673c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/views/Home/Banner/Banner.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { useState } from "react";
import { useNavigate } from "react-router-dom";
import Slider from "react-slick";
import "slick-carousel/slick/slick-theme.css";
import "slick-carousel/slick/slick.css";
Expand All @@ -9,7 +8,6 @@ import "./Banner.css";
const Banner = () => {
const eventBanners = useFetchEventBanners(); //이벤트 배너를 서버에서 받아옴
const [currentIndex, setCurrentIndex] = useState(0);
const navigate = useNavigate();

const settings = {
slidesToShow: 1,
Expand All @@ -20,6 +18,7 @@ const Banner = () => {
autoplaySpeed: 1800, //1.8s
afterChange: (currentSlide) => setCurrentIndex(currentSlide), //이게 인덱스값 업데이트용
};

return (
<div className="home_event">
<div className="home_event_slider_benner_wrapper">
Expand Down

0 comments on commit 499673c

Please sign in to comment.