Skip to content

Commit 500a789

Browse files
chore(site): remove proxy menu warnings about using fragment as child (coder#14121)
1 parent f3ff172 commit 500a789

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

site/src/modules/dashboard/Navbar/ProxyMenu.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,10 @@ export const ProxyMenu: FC<ProxyMenuProps> = ({ proxyContextValue }) => {
121121
// the descriptive text and will only have access to the latency options
122122
autoFocus={false}
123123
>
124-
{proxyContextValue.proxies && proxyContextValue.proxies.length > 1 && (
125-
<>
124+
{proxyContextValue.proxies &&
125+
proxyContextValue.proxies.length > 1 && [
126126
<div
127+
key="description"
127128
css={{
128129
width: "100%",
129130
maxWidth: "320px",
@@ -152,6 +153,7 @@ export const ProxyMenu: FC<ProxyMenuProps> = ({ proxyContextValue }) => {
152153
color: theme.palette.text.secondary,
153154
lineHeight: "inherit",
154155
marginTop: 0.5,
156+
marginBottom: 0,
155157
}}
156158
>
157159
Workspace proxies improve terminal and web app connections to
@@ -162,11 +164,10 @@ export const ProxyMenu: FC<ProxyMenuProps> = ({ proxyContextValue }) => {
162164
connections. A region must be manually selected, otherwise the
163165
default primary region will be used.
164166
</p>
165-
</div>
167+
</div>,
166168

167-
<Divider />
168-
</>
169-
)}
169+
<Divider key="divider" />,
170+
]}
170171

171172
{proxyContextValue.proxies &&
172173
[...proxyContextValue.proxies]

0 commit comments

Comments
 (0)