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:
parent
24e0a9030b
commit
c312f6c2b2
@ -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,
|
||||
};
|
@ -1 +0,0 @@
|
||||
export { default } from './icon-with-label';
|
@ -1,11 +0,0 @@
|
||||
.icon-with-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
&__label {
|
||||
@include H8;
|
||||
|
||||
margin-left: 4px;
|
||||
color: var(--color-text-alternative);
|
||||
}
|
||||
}
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user