Skip to content

Commit bea24d8

Browse files
committed
fix: remove HelpTooltipText from AgentLatency (div inside p)
1 parent 75c9fdf commit bea24d8

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

site/src/modules/resources/AgentLatency.tsx

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -60,28 +60,26 @@ export const AgentLatency: FC<AgentLatencyProps> = ({ agent }) => {
6060
This is the latency overhead on non peer to peer connections. The
6161
first row is the preferred relay.
6262
</HelpTooltipText>
63-
<HelpTooltipText>
64-
<Stack direction="column" spacing={1} css={{ marginTop: 16 }}>
65-
{Object.entries(agent.latency)
66-
.sort(([, a], [, b]) => a.latency_ms - b.latency_ms)
67-
.map(([regionName, region]) => (
68-
<Stack
69-
direction="row"
70-
key={regionName}
71-
spacing={0.5}
72-
justifyContent="space-between"
73-
css={
74-
region.preferred && {
75-
color: theme.palette.text.primary,
76-
}
63+
<Stack direction="column" spacing={1} css={{ marginTop: 16 }}>
64+
{Object.entries(agent.latency)
65+
.sort(([, a], [, b]) => a.latency_ms - b.latency_ms)
66+
.map(([regionName, region]) => (
67+
<Stack
68+
direction="row"
69+
key={regionName}
70+
spacing={0.5}
71+
justifyContent="space-between"
72+
css={
73+
region.preferred && {
74+
color: theme.palette.text.primary,
7775
}
78-
>
79-
<strong>{regionName}</strong>
80-
{Math.round(region.latency_ms)}ms
81-
</Stack>
82-
))}
83-
</Stack>
84-
</HelpTooltipText>
76+
}
77+
>
78+
<strong>{regionName}</strong>
79+
{Math.round(region.latency_ms)}ms
80+
</Stack>
81+
))}
82+
</Stack>
8583
</HelpTooltipContent>
8684
</HelpTooltip>
8785
</TooltipProvider>

0 commit comments

Comments
 (0)