Skip to content

Commit

Permalink
UX: Icons: Remove lock icon
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing committed Feb 16, 2023
1 parent cf49761 commit 649ecfb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 37 deletions.
2 changes: 0 additions & 2 deletions development/ts-migration-dashboard/files-to-convert.json
Original file line number Diff line number Diff line change
Expand Up @@ -925,8 +925,6 @@
"ui/components/ui/loading-indicator/loading-indicator.js",
"ui/components/ui/loading-screen/index.js",
"ui/components/ui/loading-screen/loading-screen.component.js",
"ui/components/ui/lock-icon/index.js",
"ui/components/ui/lock-icon/lock-icon.component.js",
"ui/components/ui/logo/logo-coinbasepay.js",
"ui/components/ui/logo/logo-deposit-eth.js",
"ui/components/ui/logo/logo-lattice.js",
Expand Down
1 change: 0 additions & 1 deletion ui/components/ui/lock-icon/index.js

This file was deleted.

32 changes: 0 additions & 32 deletions ui/components/ui/lock-icon/lock-icon.component.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP,
NETWORK_TYPES,
} from '../../../../../shared/constants/network';
import LockIcon from '../../../../components/ui/lock-icon';
import IconCheck from '../../../../components/ui/icon/icon-check';
import { NETWORKS_ROUTE } from '../../../../helpers/constants/routes';
import { setSelectedSettingsRpcUrl } from '../../../../store/actions';
Expand All @@ -18,6 +17,12 @@ import Identicon from '../../../../components/ui/identicon';
import UrlIcon from '../../../../components/ui/url-icon';

import { handleSettingsRefs } from '../../../../helpers/utils/settings-search';
import {
Icon,
ICON_NAMES,
ICON_SIZES,
} from '../../../../components/component-library';
import { Color } from '../../../../helpers/constants/design-system';

const NetworksListItem = ({
network,
Expand Down Expand Up @@ -122,7 +127,12 @@ const NetworksListItem = ({
>
{label || t(labelKey)}
{currentProviderType !== NETWORK_TYPES.RPC && (
<LockIcon width="14px" height="17px" fill="var(--color-icon-muted)" />
<Icon
name={ICON_NAMES.LOCK}
color={Color.iconMuted}
size={ICON_SIZES.SM}
marginInlineStart={2}
/>
)}
</div>
</div>
Expand Down

0 comments on commit 649ecfb

Please sign in to comment.