Skip to content

Commit ce21c84

Browse files
committed
Fix new ESLint warnings
After the Next.js update, these two newly showed up as linting errors.
1 parent 9906b4f commit ce21c84

File tree

2 files changed

+2
-7
lines changed
  • src/app
    • (proper_react)/(redesign)/(authenticated)/user/(dashboard)/dashboard
    • api/v1/admin/users/[fxaUid]

2 files changed

+2
-7
lines changed

src/app/(proper_react)/(redesign)/(authenticated)/user/(dashboard)/dashboard/View.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"use client";
66

77
import { useContext, useEffect, useRef, useState } from "react";
8+
import Link from "next/link";
89
import { usePathname } from "next/navigation";
910
import Image from "next/image";
1011
import { Session } from "next-auth";
@@ -388,7 +389,7 @@ export const View = (props: Props) => {
388389
typeof props.totalNumberOfPerformedScans === "undefined" ||
389390
props.totalNumberOfPerformedScans <
390391
CONST_ONEREP_MAX_SCANS_THRESHOLD ? (
391-
<a
392+
<Link
392393
ref={waitlistTriggerRef}
393394
href="/user/welcome/free-scan?referrer=dashboard"
394395
onClick={() => {

src/app/api/v1/admin/users/[fxaUid]/route.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ export type GetUserStateResponseBody = {
4242
* This requires admin privileges, and doesn't return any PII directly, just user state and IDs.
4343
*
4444
* @param req
45-
* @param root0
46-
* @param root0.params
47-
* @param root0.params.fxaUid
4845
* @param props
4946
* @param props.params
5047
*/
@@ -120,9 +117,6 @@ export type PutUserStateRequestBody = {
120117
* state (such as the badge) depends on the FxA `subscriptions` claim in the JWT.
121118
*
122119
* @param req
123-
* @param root0
124-
* @param root0.params
125-
* @param root0.params.fxaUid
126120
* @param props
127121
* @param props.params
128122
*/

0 commit comments

Comments
 (0)