Skip to content

Commit 02425ee

Browse files
chore: replace MUI icons with Lucide icons - 7 (#17776)
VisibilityOffOutlined -> EyeOffIcon VisibilityOutlined -> EyeIcon
1 parent b0788f4 commit 02425ee

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

site/src/modules/resources/SensitiveValue.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { type Interpolation, type Theme, css } from "@emotion/react";
2-
import VisibilityOffOutlined from "@mui/icons-material/VisibilityOffOutlined";
3-
import VisibilityOutlined from "@mui/icons-material/VisibilityOutlined";
42
import IconButton from "@mui/material/IconButton";
53
import Tooltip from "@mui/material/Tooltip";
64
import { CopyableValue } from "components/CopyableValue/CopyableValue";
5+
import { EyeIcon, EyeOffIcon } from "lucide-react";
76
import { type FC, useState } from "react";
87

98
const Language = {
@@ -20,9 +19,9 @@ export const SensitiveValue: FC<SensitiveValueProps> = ({ value }) => {
2019
const displayValue = shouldDisplay ? value : "••••••••";
2120
const buttonLabel = shouldDisplay ? Language.hideLabel : Language.showLabel;
2221
const icon = shouldDisplay ? (
23-
<VisibilityOffOutlined />
22+
<EyeOffIcon className="size-icon-xs" />
2423
) : (
25-
<VisibilityOutlined />
24+
<EyeIcon className="size-icon-xs" />
2625
);
2726

2827
return (
@@ -63,10 +62,5 @@ const styles = {
6362

6463
button: css`
6564
color: inherit;
66-
67-
& .MuiSvgIcon-root {
68-
width: 16px;
69-
height: 16px;
70-
}
7165
`,
7266
} satisfies Record<string, Interpolation<Theme>>;

site/src/pages/OrganizationSettingsPage/CustomRolesPage/CreateEditRolePageView.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import type { Interpolation, Theme } from "@emotion/react";
2-
import VisibilityOffOutlinedIcon from "@mui/icons-material/VisibilityOffOutlined";
3-
import VisibilityOutlinedIcon from "@mui/icons-material/VisibilityOutlined";
42
import Checkbox from "@mui/material/Checkbox";
53
import FormControlLabel from "@mui/material/FormControlLabel";
64
import Table from "@mui/material/Table";
@@ -32,6 +30,7 @@ import {
3230
import { Spinner } from "components/Spinner/Spinner";
3331
import { Stack } from "components/Stack/Stack";
3432
import { useFormik } from "formik";
33+
import { EyeIcon, EyeOffIcon } from "lucide-react";
3534
import { type ChangeEvent, type FC, useState } from "react";
3635
import { useNavigate } from "react-router-dom";
3736
import { getFormHelpers, nameValidator } from "utils/formUtils";
@@ -398,8 +397,8 @@ const ShowAllResourcesCheckbox: FC<ShowAllResourcesCheckboxProps> = ({
398397
name="show_all_permissions"
399398
checked={showAllResources}
400399
onChange={(e) => setShowAllResources(e.currentTarget.checked)}
401-
checkedIcon={<VisibilityOutlinedIcon />}
402-
icon={<VisibilityOffOutlinedIcon />}
400+
checkedIcon={<EyeIcon className="size-icon-sm" />}
401+
icon={<EyeOffIcon className="size-icon-sm" />}
403402
/>
404403
}
405404
label={

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy