fix: add type annotation for slider index parameter
All checks were successful
Production Build & Deploy / build-and-deploy (push) Successful in 27s
All checks were successful
Production Build & Deploy / build-and-deploy (push) Successful in 27s
This commit is contained in:
@@ -431,7 +431,7 @@ const heroTemplates = [
|
|||||||
let currentIdx = 0;
|
let currentIdx = 0;
|
||||||
const totalSlides = slides.length;
|
const totalSlides = slides.length;
|
||||||
|
|
||||||
function updateSlider(newIdx) {
|
function updateSlider(newIdx: number) {
|
||||||
// Hide current slide
|
// Hide current slide
|
||||||
slides[currentIdx].classList.remove('opacity-100', 'scale-100', 'pointer-events-auto');
|
slides[currentIdx].classList.remove('opacity-100', 'scale-100', 'pointer-events-auto');
|
||||||
slides[currentIdx].classList.add('opacity-0', 'scale-95', 'pointer-events-none');
|
slides[currentIdx].classList.add('opacity-0', 'scale-95', 'pointer-events-none');
|
||||||
|
|||||||
Reference in New Issue
Block a user