Rename vars, code cleanup

This commit is contained in:
Vadim
2021-01-22 19:55:24 +03:00
parent 0470ce313c
commit 905c00cd94
12 changed files with 66 additions and 80 deletions

View File

@@ -18,14 +18,14 @@ export function getIsNotCompletePage({
}
export function getSlideSize({
contentContainerWidth,
pageWidth,
slidesToShow,
slidesToShowTail,
isNotCompletePage
}) {
return isNotCompletePage
? Math.round(contentContainerWidth/slidesToShowTail)
: Math.round(contentContainerWidth/slidesToShow)
? Math.round(pageWidth/slidesToShowTail)
: Math.round(pageWidth/slidesToShow)
}
export function getPageIndex({ slideIndex, slidesToShow }) {