diff --git a/src/components/elements/input.tsx b/src/components/elements/input.tsx index 628fc1cb..e32ee352 100644 --- a/src/components/elements/input.tsx +++ b/src/components/elements/input.tsx @@ -17,7 +17,7 @@ const Input = ({ name, onChange, type, - className, + className = "", defaultValue, focus = false, ...rest diff --git a/src/components/modules/networkIpAssignments.tsx b/src/components/modules/networkIpAssignments.tsx index 14b5c8a1..819bd9a7 100644 --- a/src/components/modules/networkIpAssignments.tsx +++ b/src/components/modules/networkIpAssignments.tsx @@ -1,3 +1,5 @@ +/* eslint-disable @typescript-eslint/no-unsafe-call */ +/* eslint-disable @typescript-eslint/no-unsafe-member-access */ import { useRouter } from "next/router"; import { toast } from "react-hot-toast"; import { type CustomError } from "~/types/errorHandling"; @@ -39,7 +41,7 @@ export const NetworkIpAssignment = () => { <>
IPv4 assignment
- {network.cidr?.map((cidr) => { + {network.cidr?.map((cidr: string) => { return network?.routes?.some((route) => route.target === cidr) ? (
void; } -const CopyIcon = ({ className, onClick, ...rest }: Icon) => ( +const CopyIcon = ({ className = "", onClick, ...rest }: Icon) => ( {
-
+

Networks

Network Count: {networkCount}

Total Members: {totalMembers}

-
+

Controller TCP

Allow Management From:

@@ -51,7 +54,7 @@ const Controller = () => {
-
+

Controller Stats diff --git a/src/pages/network/[id].tsx b/src/pages/network/[id].tsx index a90209f4..4fba09c5 100644 --- a/src/pages/network/[id].tsx +++ b/src/pages/network/[id].tsx @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/restrict-template-expressions */ import { useRouter } from "next/router"; import { useState, type ReactElement } from "react"; import { LayoutAuthenticated } from "~/components/layouts/layout"; diff --git a/tsconfig.json b/tsconfig.json index d4f262b0..56f73ce3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,6 @@ "jsx": "preserve", "incremental": true, "noUncheckedIndexedAccess": true, - "strictNullChecks": true, "baseUrl": ".", "paths": { "~/*": ["./src/*"]