1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Removing iconClassName prop from NetworkDisplay (#14035)

This commit is contained in:
ryanml 2022-03-18 10:40:44 -07:00 committed by Dan Miller
parent a3d232ed3e
commit b0a9b83f6f
2 changed files with 1 additions and 16 deletions

View File

@ -22,7 +22,6 @@ import { isNetworkLoading } from '../../../selectors';
export default function NetworkDisplay({
colored,
outline,
iconClassName,
indicatorSize,
disabled,
labelProps,
@ -61,14 +60,7 @@ export default function NetworkDisplay({
/>
</LoadingIndicator>
}
rightIcon={
iconClassName && (
<IconCaretDown
size={16}
className={classnames('network-display__icon', iconClassName)}
/>
)
}
rightIcon={<IconCaretDown size={16} className="network-display__icon" />}
label={
networkType === NETWORK_TYPE_RPC
? networkNickname ?? t('privateNetwork')
@ -100,7 +92,6 @@ NetworkDisplay.propTypes = {
}),
outline: PropTypes.bool,
disabled: PropTypes.bool,
iconClassName: PropTypes.string,
onClick: PropTypes.func,
};

View File

@ -23,16 +23,10 @@ export default {
disabled: {
control: 'boolean',
},
iconClassName: {
control: 'text',
},
onClick: {
action: 'onClick',
},
},
args: {
iconClassName: 'caret',
},
};
export const DefaultStory = (args) => <NetworkDisplay {...args} />;