Skip to content

chore(site): remove proxy menu warnings about using fragment as child #14121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions site/src/modules/dashboard/Navbar/ProxyMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ export const ProxyMenu: FC<ProxyMenuProps> = ({ proxyContextValue }) => {
// the descriptive text and will only have access to the latency options
autoFocus={false}
>
{proxyContextValue.proxies && proxyContextValue.proxies.length > 1 && (
<>
{proxyContextValue.proxies &&
proxyContextValue.proxies.length > 1 && [
<div
key="description"
css={{
width: "100%",
maxWidth: "320px",
Expand Down Expand Up @@ -152,6 +153,7 @@ export const ProxyMenu: FC<ProxyMenuProps> = ({ proxyContextValue }) => {
color: theme.palette.text.secondary,
lineHeight: "inherit",
marginTop: 0.5,
marginBottom: 0,
}}
>
Workspace proxies improve terminal and web app connections to
Expand All @@ -162,11 +164,10 @@ export const ProxyMenu: FC<ProxyMenuProps> = ({ proxyContextValue }) => {
connections. A region must be manually selected, otherwise the
default primary region will be used.
</p>
</div>
</div>,

<Divider />
</>
)}
<Divider key="divider" />,
]}

{proxyContextValue.proxies &&
[...proxyContextValue.proxies]
Expand Down
Loading