Commit d969e3b3 authored by Kim, Subin's avatar Kim, Subin
Browse files

버튼 로직 추가

parent 666389a7
...@@ -32,14 +32,16 @@ const ScheduleCarousel = () => { ...@@ -32,14 +32,16 @@ const ScheduleCarousel = () => {
<KU schedule={schedule} /> <KU schedule={schedule} />
</div>) : null} </div>) : null}
</div> </div>
<button className="carousel-control-prev" type="button" data-bs-target="#scheduleListCarousel" data-bs-slide="prev"> {scheduleList.length > 1 ? <>
<span className="carousel-control-prev-icon" aria-hidden="true"></span> <button className="carousel-control-prev" type="button" data-bs-target="#scheduleListCarousel" data-bs-slide="prev">
<span className="visually-hidden">Previous</span> <span className="carousel-control-prev-icon" aria-hidden="true"></span>
</button> <span className="visually-hidden">Previous</span>
<button className="carousel-control-next" type="button" data-bs-target="#scheduleListCarousel" data-bs-slide="next"> </button>
<span className="carousel-control-next-icon" aria-hidden="true"></span> <button className="carousel-control-next" type="button" data-bs-target="#scheduleListCarousel" data-bs-slide="next">
<span className="visually-hidden">Next</span> <span className="carousel-control-next-icon" aria-hidden="true"></span>
</button> <span className="visually-hidden">Next</span>
</button>
</> : null}
</div> </div>
) )
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment