small improvement
This commit is contained in:
@@ -24,6 +24,7 @@ import { Label } from "@/components/ui/label"
|
||||
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"
|
||||
import { ScrollArea } from "@/components/ui/scroll-area"
|
||||
import {
|
||||
isValidUri,
|
||||
Network,
|
||||
networkCategories,
|
||||
onChangeChain,
|
||||
@@ -36,15 +37,6 @@ import { useCommandState } from "cmdk"
|
||||
import { Check, ChevronDown } from "lucide-react"
|
||||
import { FC, useEffect, useRef, useState } from "react"
|
||||
|
||||
const isValidUri = (input: string): boolean => {
|
||||
try {
|
||||
new URL(input)
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
const EmptyOption: React.FC<{
|
||||
enteredText: string
|
||||
selectedNetwork: Network
|
||||
|
||||
Reference in New Issue
Block a user