diff --git a/src/components/ProxyPreviewBar.tsx b/src/components/ProxyPreviewBar.tsx index b2dcd34..ece2de2 100644 --- a/src/components/ProxyPreviewBar.tsx +++ b/src/components/ProxyPreviewBar.tsx @@ -41,7 +41,7 @@ export const ProxyPreviewBar = (props: { ) return ( -
+
{ +const LatencyDots = (props: { + name: string + latency?: number + selected: boolean +}) => { let dotClassName = props.selected ? 'bg-white border-4 border-success' : 'bg-success' @@ -25,7 +29,12 @@ const LatencyDots = (props: { latency?: number; selected: boolean }) => { : 'bg-warning' } - return
+ return ( +
+ ) } export const ProxyPreviewDots = (props: { @@ -35,7 +44,7 @@ export const ProxyPreviewDots = (props: { const { latencyMap } = useProxies() return ( -
+
[ @@ -46,7 +55,13 @@ export const ProxyPreviewDots = (props: { {([name, latency]) => { const isSelected = props.now === name - return + return ( + + ) }}