[홈패널] 홈투데이딜 Nect /Pre 버튼 수정
This commit is contained in:
@@ -40,6 +40,7 @@ export default function HomeTodayDeal({
|
|||||||
|
|
||||||
const handlePrev = () => {
|
const handlePrev = () => {
|
||||||
if (currentIndex === 0) {
|
if (currentIndex === 0) {
|
||||||
|
getIndex(lastIndex);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
getIndex(currentIndex - 1);
|
getIndex(currentIndex - 1);
|
||||||
@@ -47,6 +48,7 @@ export default function HomeTodayDeal({
|
|||||||
|
|
||||||
const handleNext = () => {
|
const handleNext = () => {
|
||||||
if (lastIndex === currentIndex) {
|
if (lastIndex === currentIndex) {
|
||||||
|
getIndex(0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
getIndex(currentIndex + 1);
|
getIndex(currentIndex + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user