[홈패널] 홈투데이딜 Nect /Pre 버튼 수정

This commit is contained in:
sungmin.in
2024-02-19 10:06:02 +09:00
parent d674658dd8
commit 5c8f93ee22

View File

@@ -40,6 +40,7 @@ export default function HomeTodayDeal({
const handlePrev = () => {
if (currentIndex === 0) {
getIndex(lastIndex);
return;
}
getIndex(currentIndex - 1);
@@ -47,6 +48,7 @@ export default function HomeTodayDeal({
const handleNext = () => {
if (lastIndex === currentIndex) {
getIndex(0);
return;
}
getIndex(currentIndex + 1);