From 821374d773b474b5038cc0c0a7821f57d2d96b2e Mon Sep 17 00:00:00 2001 From: BrunoQuaresma Date: Thu, 8 May 2025 20:15:05 +0000 Subject: [PATCH 1/3] chore: replace MUI icons #2 --- site/src/components/CopyButton/CopyButton.tsx | 4 ++-- site/src/components/DropdownArrow/DropdownArrow.tsx | 5 ++--- site/src/components/DurationField/DurationField.tsx | 4 ++-- site/src/components/Filter/Filter.tsx | 4 ++-- site/src/modules/resources/PortForwardButton.tsx | 4 ++-- site/src/modules/resources/SSHButton/SSHButton.tsx | 6 +++--- .../workspaces/WorkspaceTiming/WorkspaceTimings.tsx | 7 +++---- site/src/pages/WorkspacesPage/WorkspacesPageView.tsx | 4 ++-- site/src/pages/WorkspacesPage/WorkspacesTable.tsx | 6 +++--- 9 files changed, 21 insertions(+), 23 deletions(-) diff --git a/site/src/components/CopyButton/CopyButton.tsx b/site/src/components/CopyButton/CopyButton.tsx index c52ba5b26c204..86a14c2a2ff48 100644 --- a/site/src/components/CopyButton/CopyButton.tsx +++ b/site/src/components/CopyButton/CopyButton.tsx @@ -1,8 +1,8 @@ import { type Interpolation, type Theme, css } from "@emotion/react"; -import Check from "@mui/icons-material/Check"; import IconButton from "@mui/material/Button"; import Tooltip from "@mui/material/Tooltip"; import { useClipboard } from "hooks/useClipboard"; +import { CheckIcon } from "lucide-react"; import { type ReactNode, forwardRef } from "react"; import { FileCopyIcon } from "../Icons/FileCopyIcon"; @@ -48,7 +48,7 @@ export const CopyButton = forwardRef( onClick={copyToClipboard} > {showCopiedSuccess ? ( - + ) : ( )} diff --git a/site/src/components/DropdownArrow/DropdownArrow.tsx b/site/src/components/DropdownArrow/DropdownArrow.tsx index daa7fd415a08f..a791f2e26e1cc 100644 --- a/site/src/components/DropdownArrow/DropdownArrow.tsx +++ b/site/src/components/DropdownArrow/DropdownArrow.tsx @@ -1,6 +1,5 @@ import type { Interpolation, Theme } from "@emotion/react"; -import KeyboardArrowDown from "@mui/icons-material/KeyboardArrowDown"; -import KeyboardArrowUp from "@mui/icons-material/KeyboardArrowUp"; +import { ChevronDownIcon, ChevronUpIcon } from "lucide-react"; import type { FC } from "react"; interface ArrowProps { @@ -14,7 +13,7 @@ export const DropdownArrow: FC = ({ color, close, }) => { - const Arrow = close ? KeyboardArrowUp : KeyboardArrowDown; + const Arrow = close ? ChevronUpIcon : ChevronDownIcon; return ( = (props) => { }); }} inputProps={{ "aria-label": "Time unit" }} - IconComponent={KeyboardArrowDown} + IconComponent={ChevronDownIcon} > Hours = ({ diff --git a/site/src/modules/resources/PortForwardButton.tsx b/site/src/modules/resources/PortForwardButton.tsx index b83a26cbfb32c..bb449a0fcecfe 100644 --- a/site/src/modules/resources/PortForwardButton.tsx +++ b/site/src/modules/resources/PortForwardButton.tsx @@ -1,7 +1,7 @@ import { type Interpolation, type Theme, useTheme } from "@emotion/react"; import CloseIcon from "@mui/icons-material/Close"; -import KeyboardArrowDown from "@mui/icons-material/KeyboardArrowDown"; import LockIcon from "@mui/icons-material/Lock"; +import { ChevronDownIcon } from "lucide-react"; import LockOpenIcon from "@mui/icons-material/LockOpen"; import OpenInNewOutlined from "@mui/icons-material/OpenInNewOutlined"; import SensorsIcon from "@mui/icons-material/Sensors"; @@ -82,7 +82,7 @@ export const PortForwardButton: FC = (props) => { disabled={!portsQuery.data} size="small" variant="text" - endIcon={} + endIcon={} css={{ fontSize: 13, padding: "8px 12px" }} startIcon={ portsQuery.data ? ( diff --git a/site/src/modules/resources/SSHButton/SSHButton.tsx b/site/src/modules/resources/SSHButton/SSHButton.tsx index d5351a3ff5466..0444d445fe781 100644 --- a/site/src/modules/resources/SSHButton/SSHButton.tsx +++ b/site/src/modules/resources/SSHButton/SSHButton.tsx @@ -1,5 +1,5 @@ import type { Interpolation, Theme } from "@emotion/react"; -import KeyboardArrowDown from "@mui/icons-material/KeyboardArrowDown"; +import { ChevronDownIcon } from "lucide-react"; import Button from "@mui/material/Button"; import { CodeExample } from "components/CodeExample/CodeExample"; import { @@ -36,7 +36,7 @@ export const AgentSSHButton: FC = ({