mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-26 21:41:50 +00:00
feat: dot navigation code cleanup
This commit is contained in:
parent
23c577fd52
commit
abba57c10c
1 changed files with 1 additions and 12 deletions
|
|
@ -534,18 +534,7 @@
|
||||||
|
|
||||||
const progress = pagesFilled.slice(0, i).every((item) => item === true);
|
const progress = pagesFilled.slice(0, i).every((item) => item === true);
|
||||||
if (progress) {
|
if (progress) {
|
||||||
if (i > pageIndex) {
|
pageIndex = i;
|
||||||
// if next page is clicked, validate current page
|
|
||||||
console.log($errors);
|
|
||||||
if (isPageInvalid(pageIndex)) return;
|
|
||||||
// pagesFilled[i] = true;
|
|
||||||
console.log(pagesFilled);
|
|
||||||
pageIndex = i;
|
|
||||||
} else {
|
|
||||||
pageIndex = i;
|
|
||||||
}
|
|
||||||
// @ts-ignore
|
|
||||||
// errors.set(formInitialValues);
|
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
class="dot"
|
class="dot"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue