web: fix page dots

This commit is contained in:
Quaternions 2025-04-06 15:50:08 -07:00
parent 77222c84db
commit d02e3776f3
Signed by: Quaternions
GPG Key ID: D0DF5964F79AC131
2 changed files with 4 additions and 4 deletions
web/src/app
mapfixes
submissions

@ -83,8 +83,8 @@ export default function MapfixInfoPage() {
{Array.from({ length: totalPages }).map((_, index) => (
<span
key={index}
className={`dot ${index === currentPage ? 'active' : ''}`}
onClick={() => setCurrentPage(index)}
className={`dot ${index+1 === currentPage ? 'active' : ''}`}
onClick={() => setCurrentPage(index+1)}
></span>
))}
</div>

@ -81,8 +81,8 @@ export default function SubmissionInfoPage() {
{Array.from({ length: totalPages }).map((_, index) => (
<span
key={index}
className={`dot ${index === currentPage ? 'active' : ''}`}
onClick={() => setCurrentPage(index)}
className={`dot ${index+1 === currentPage ? 'active' : ''}`}
onClick={() => setCurrentPage(index+1)}
></span>
))}
</div>