chore: add no unused vars lint rule

This commit is contained in:
Christian Andolf
2025-02-14 10:24:52 +01:00
parent 1116bdafa8
commit 06d861fb6f
54 changed files with 47 additions and 143 deletions
@@ -19,8 +19,6 @@ import type { ReactNode } from "react"
import { DropdownTypeEnum } from "@/types/components/dropdown/dropdown"
export default function MyPagesMobileDropdown() {
const { data: myPagesNavigation } = useMyPagesNavigation()
const intl = useIntl()
const { toggleDropdown, isMyPagesMobileMenuOpen } = useDropdownStore()
+1 -1
View File
@@ -89,7 +89,7 @@ export async function TopMenuSkeleton() {
<div className={styles.topMenu}>
<div className={styles.container}>
<ul className={styles.list}>
{links.map((link, i) => (
{links.map((_link, i) => (
<li key={i} className={styles.skeletonWrapper}>
<SkeletonShimmer width="100px" height="16px" />
</li>
+3 -3
View File
@@ -1,7 +1,7 @@
"use client"
import { usePathname, useSearchParams } from "next/navigation"
import { useEffect, useState } from "react"
import { useEffect } from "react"
import type {
SiteSectionObject,
@@ -19,7 +19,7 @@ function createPageObject(trackingData: TrackingData) {
.filter((seg: string) => seg)
function getSiteSections(segments: string[]): SiteSectionObject {
/*
/*
Adobe expects the properties sitesection1 - sitessection6, hence the for-loop below
The segments ['explore-scandic', 'wifi'] should result in:
{
@@ -29,7 +29,7 @@ function createPageObject(trackingData: TrackingData) {
sitesection4: "explore-scandic|wifi||",
sitesection5: "explore-scandic|wifi|||",
sitesection6: "explore-scandic|wifi||||",
}
}
*/
const sitesections = {} as SiteSectionObject
for (let i = 0; i < 6; i++) {