Skip to content

Commit 2c76fdd

Browse files
committed
Fixed linting errors and warnings
1 parent a488c82 commit 2c76fdd

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

src/components/shared/MainNav.tsx

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ const MainNav = ({
7474
path: "/events/events",
7575
accessRole: "ROLE_UI_EVENTS_VIEW",
7676
tooltipTitle: "NAV.EVENTS.TITLE",
77-
className: "events"
77+
className: "events",
7878
},
7979
{
8080
path: "/events/series",
8181
accessRole: "ROLE_UI_SERIES_VIEW",
8282
tooltipTitle: "NAV.EVENTS.TITLE",
8383
className: "events",
84-
}
85-
]
84+
},
85+
],
8686
},
8787
"recordings": {
8888
links: [
@@ -91,80 +91,80 @@ const MainNav = ({
9191
accessRole: "ROLE_UI_LOCATIONS_VIEW",
9292
tooltipTitle: "NAV.CAPTUREAGENTS.TITLE",
9393
className: "recordings",
94-
}
95-
]
94+
},
95+
],
9696
},
9797
"systems": {
9898
links: [
9999
{
100100
path: "/systems/jobs",
101101
accessRole: "ROLE_UI_JOBS_VIEW",
102102
tooltipTitle: "NAV.SYSTEMS.TITLE",
103-
className: "systems"
103+
className: "systems",
104104
},
105105
{
106106
path: "/systems/servers",
107107
accessRole: "ROLE_UI_SERVERS_VIEW",
108108
tooltipTitle: "NAV.SYSTEMS.TITLE",
109-
className: "systems"
109+
className: "systems",
110110
},
111111
{
112112
path: "/systems/services",
113113
accessRole: "ROLE_UI_SERVICES_VIEW",
114114
tooltipTitle: "NAV.SYSTEMS.TITLE",
115-
className: "systems"
116-
}
117-
]
115+
className: "systems",
116+
},
117+
],
118118
},
119119
"users": {
120120
links: [
121121
{
122122
path: "/users/users",
123123
accessRole: "ROLE_UI_USERS_VIEW",
124124
tooltipTitle: "NAV.USERS.TITLE",
125-
className: "users"
125+
className: "users",
126126
},
127127
{
128128
path: "/users/groups",
129129
accessRole: "ROLE_UI_GROUPS_VIEW",
130130
tooltipTitle: "NAV.USERS.TITLE",
131-
className: "users"
131+
className: "users",
132132
},
133133
{
134134
path: "/users/acls",
135135
accessRole: "ROLE_UI_ACLS_VIEW",
136136
tooltipTitle: "NAV.USERS.TITLE",
137-
className: "users"
138-
}
139-
]
137+
className: "users",
138+
},
139+
],
140140
},
141141
"configuration": {
142142
links: [
143143
{
144144
path: "/configuration/themes",
145145
accessRole: "ROLE_UI_THEMES_VIEW",
146146
tooltipTitle: "NAV.CONFIGURATION.TITLE",
147-
className: "configuration"
148-
}
149-
]
147+
className: "configuration",
148+
},
149+
],
150150
},
151151
"statistics": {
152152
links: [
153153
{
154154
path: "/statistics/organization",
155155
accessRole: "ROLE_UI_STATISTICS_ORGANIZATION_VIEW",
156156
tooltipTitle: "NAV.STATISTICS.TITLE",
157-
className: "statistics"
158-
}
159-
]
160-
}
157+
className: "statistics",
158+
},
159+
],
160+
},
161161
};
162162

163163
// Link arrays containing more than one link must be sorted so that the
164164
// current view is always the first element. Otherwise, NavLink will not
165165
// recognize the current view as active.
166166
if (firstPathFragment.length > 0) {
167-
let arrToSort = linkMap[firstPathFragment as keyof typeof linkMap].links;
167+
const arrToSort = linkMap[firstPathFragment as keyof typeof linkMap].links;
168168
if (arrToSort != undefined && arrToSort.length > 1) {
169169
arrToSort.forEach((item : any) => {
170170
if (item.path === pathname) { item.tmpIndex = 0 } else { item.tmpIndex = 1 }
@@ -243,7 +243,7 @@ const MainNavButton = ({
243243
const MainNavLink = ({
244244
path,
245245
tooltipTitle,
246-
className
246+
className,
247247
}: {
248248
path: string
249249
tooltipTitle: ParseKeys

0 commit comments

Comments
 (0)