1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

UX: Icons: Remove IconWithLabel (#17815)

This commit is contained in:
David Walsh 2023-02-21 09:45:12 -06:00 committed by GitHub
parent 24e0a9030b
commit c312f6c2b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 31 deletions

View File

@ -1,18 +0,0 @@
import React from 'react';
import classnames from 'classnames';
import PropTypes from 'prop-types';
export default function IconWithLabel({ icon, label, className }) {
return (
<div className={classnames('icon-with-label', className)}>
{icon}
{label ? <span className="icon-with-label__label">{label}</span> : null}
</div>
);
}
IconWithLabel.propTypes = {
icon: PropTypes.node.isRequired,
className: PropTypes.string,
label: PropTypes.string,
};

View File

@ -1 +0,0 @@
export { default } from './icon-with-label';

View File

@ -1,11 +0,0 @@
.icon-with-label {
display: flex;
align-items: center;
&__label {
@include H8;
margin-left: 4px;
color: var(--color-text-alternative);
}
}

View File

@ -21,7 +21,6 @@
@import 'icon-border/icon-border';
@import 'icon-button/icon-button';
@import 'icon-with-fallback/icon-with-fallback';
@import 'icon-with-label/index';
@import 'icon/index';
@import 'icon/preloader/index';
@import 'identicon/index';