mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-27 07:34:12 +08:00
refactor: undefined
This commit is contained in:
parent
f72976154d
commit
f56e82a9e1
@ -5,7 +5,7 @@ import { renderInTwoColumns } from '~/signals'
|
||||
type Props = {
|
||||
title: JSX.Element
|
||||
content: JSX.Element
|
||||
isOpen: boolean | undefined
|
||||
isOpen?: boolean
|
||||
onCollapse: (collapsed: boolean) => void
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ export const ProxyCardGroups = (props: {
|
||||
<ProxyNodeCard
|
||||
proxyName={proxy}
|
||||
isSelected={props.now === proxy}
|
||||
onClick={props.onClick ? () => props.onClick?.(proxy!) : undefined}
|
||||
onClick={props.onClick && (() => props.onClick?.(proxy))}
|
||||
/>
|
||||
)}
|
||||
</InfiniteScroll>
|
||||
|
@ -3,10 +3,7 @@ import { twMerge } from 'tailwind-merge'
|
||||
import { Latency } from '~/components'
|
||||
import { latencyQualityMap, useProxies } from '~/signals'
|
||||
|
||||
const LatencyDots = (props: {
|
||||
latency: number | undefined
|
||||
selected: boolean
|
||||
}) => {
|
||||
const LatencyDots = (props: { latency?: number; selected: boolean }) => {
|
||||
let dotClassName = props.selected
|
||||
? 'bg-white border-4 border-success'
|
||||
: 'bg-success'
|
||||
|
Loading…
x
Reference in New Issue
Block a user