TS fixes
This commit is contained in:
@@ -34,12 +34,12 @@ const complement = (hex?: string) => {
|
||||
return "#fff"
|
||||
}
|
||||
|
||||
const getSuggestions = (group, name, icons) => {
|
||||
const response: {
|
||||
group?: Array<ObjectType>
|
||||
[key: string]: Array<ObjectType> | undefined
|
||||
} = {}
|
||||
}
|
||||
// const getSuggestions = (group, name, icons) => {
|
||||
// const response: {
|
||||
// group?: Array<ObjectType>
|
||||
// [key: string]: Array<ObjectType> | undefined
|
||||
// } = {}
|
||||
// }
|
||||
const IconController = (props: IconControllerProps): JSX.Element => {
|
||||
const { group, name } = props
|
||||
const [iconColor, setIconColor] = useState<string>()
|
||||
|
||||
@@ -102,8 +102,8 @@ const NamespaceInfoBox = (props: NamespaceInfoBoxProps): JSX.Element => {
|
||||
</main>
|
||||
<Alert
|
||||
show={displayed?.displayed}
|
||||
key={uuid()}
|
||||
message={message || "Link Copied!"}
|
||||
uid={uuid()}
|
||||
closeable
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -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
|
||||
/>
|
||||
<Alert message="Link Copied!" />
|
||||
<Alert message="Link Copied!" uid={uuid()} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1665,7 +1665,7 @@ export function processOptions(options: DateRangeProps) {
|
||||
"</li>"
|
||||
}
|
||||
list += "</ul>"
|
||||
options.container.find(".ranges").prepend(list)
|
||||
// options.container?.find(".ranges").prepend(list)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import Dropdown from "./Dropdown"
|
||||
import Dropdown from "./DropDown"
|
||||
|
||||
export default Dropdown
|
||||
|
||||
Reference in New Issue
Block a user