From 66a59af061f8f3f1138af752a1fdf422eb5cec49 Mon Sep 17 00:00:00 2001 From: mohiit1502 Date: Sat, 7 Oct 2023 00:11:55 +0530 Subject: [PATCH] TS fixes --- src/app/components/IconController/IconController.tsx | 12 ++++++------ .../components/NamespaceInfoBox/NamespaceInfoBox.tsx | 2 +- .../BrowserIncompatibility.tsx | 3 ++- src/app/components/atoms/Date/dateRangeFunctions.ts | 2 +- src/app/components/atoms/DropDown/index.ts | 2 +- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/app/components/IconController/IconController.tsx b/src/app/components/IconController/IconController.tsx index 122b54e..db764ab 100755 --- a/src/app/components/IconController/IconController.tsx +++ b/src/app/components/IconController/IconController.tsx @@ -34,12 +34,12 @@ const complement = (hex?: string) => { return "#fff" } -const getSuggestions = (group, name, icons) => { - const response: { - group?: Array - [key: string]: Array | undefined - } = {} -} +// const getSuggestions = (group, name, icons) => { +// const response: { +// group?: Array +// [key: string]: Array | undefined +// } = {} +// } const IconController = (props: IconControllerProps): JSX.Element => { const { group, name } = props const [iconColor, setIconColor] = useState() diff --git a/src/app/components/NamespaceInfoBox/NamespaceInfoBox.tsx b/src/app/components/NamespaceInfoBox/NamespaceInfoBox.tsx index fd87934..6c3bc3a 100755 --- a/src/app/components/NamespaceInfoBox/NamespaceInfoBox.tsx +++ b/src/app/components/NamespaceInfoBox/NamespaceInfoBox.tsx @@ -102,8 +102,8 @@ const NamespaceInfoBox = (props: NamespaceInfoBoxProps): JSX.Element => { diff --git a/src/app/components/atoms/BrowserIncompatibility/BrowserIncompatibility.tsx b/src/app/components/atoms/BrowserIncompatibility/BrowserIncompatibility.tsx index 8231339..9ff000e 100755 --- a/src/app/components/atoms/BrowserIncompatibility/BrowserIncompatibility.tsx +++ b/src/app/components/atoms/BrowserIncompatibility/BrowserIncompatibility.tsx @@ -1,3 +1,4 @@ +import { v4 as uuid } from "uuid" import { Alert, Link, LoadableIcon } from "../.." import { BrowserIncompatibilityProps } from "../../../types/components.interface" import Helper from "../../../utils/helper" @@ -48,7 +49,7 @@ const BrowserIncompatibility = ( }} preemptNavigation /> - + ) } diff --git a/src/app/components/atoms/Date/dateRangeFunctions.ts b/src/app/components/atoms/Date/dateRangeFunctions.ts index 0aa06aa..0f8a627 100644 --- a/src/app/components/atoms/Date/dateRangeFunctions.ts +++ b/src/app/components/atoms/Date/dateRangeFunctions.ts @@ -1665,7 +1665,7 @@ export function processOptions(options: DateRangeProps) { "" } list += "" - options.container.find(".ranges").prepend(list) + // options.container?.find(".ranges").prepend(list) } } diff --git a/src/app/components/atoms/DropDown/index.ts b/src/app/components/atoms/DropDown/index.ts index 3a29b42..34ffd2f 100755 --- a/src/app/components/atoms/DropDown/index.ts +++ b/src/app/components/atoms/DropDown/index.ts @@ -1,3 +1,3 @@ -import Dropdown from "./Dropdown" +import Dropdown from "./DropDown" export default Dropdown