Skip to content

Commit b1ebab8

Browse files
committed
Remove Typography from NavbarView
1 parent 875cae1 commit b1ebab8

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

site/src/components/Dashboard/Navbar/NavbarView.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import Button from "@mui/material/Button";
88
import MenuItem from "@mui/material/MenuItem";
99
import KeyboardArrowDownOutlined from "@mui/icons-material/KeyboardArrowDownOutlined";
1010
import MenuIcon from "@mui/icons-material/Menu";
11-
import Typography from "@mui/material/Typography";
1211
import { css, type Interpolation, type Theme, useTheme } from "@emotion/react";
1312
import { type FC, type ReactNode, useRef, useState } from "react";
1413
import { NavLink, useLocation, useNavigate } from "react-router-dom";
@@ -360,31 +359,30 @@ const ProxyMenu: FC<{ proxyContextValue: ProxyContextValue }> = ({
360359
lineHeight: "140%",
361360
}}
362361
>
363-
<Typography
364-
component="h4"
365-
sx={{
362+
<h4
363+
css={{
366364
fontSize: "inherit",
367365
fontWeight: 600,
368366
lineHeight: "inherit",
369367
margin: 0,
368+
marginBottom: 4,
370369
}}
371370
>
372371
Select a region nearest to you
373-
</Typography>
374-
<Typography
375-
component="p"
376-
sx={{
372+
</h4>
373+
<p
374+
css={(theme) => ({
377375
fontSize: 13,
378-
color: (theme) => theme.palette.text.secondary,
376+
color: theme.palette.text.secondary,
379377
lineHeight: "inherit",
380378
marginTop: 0.5,
381-
}}
379+
})}
382380
>
383381
Workspace proxies improve terminal and web app connections to
384382
workspaces. This does not apply to CLI connections. A region must be
385383
manually selected, otherwise the default primary region will be
386384
used.
387-
</Typography>
385+
</p>
388386
</Box>
389387
<Divider sx={{ borderColor: (theme) => theme.palette.divider }} />
390388
{proxyContextValue.proxies

0 commit comments

Comments
 (0)