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