mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
Removing iconClassName prop from NetworkDisplay (#14035)
This commit is contained in:
parent
a3d232ed3e
commit
b0a9b83f6f
@ -22,7 +22,6 @@ import { isNetworkLoading } from '../../../selectors';
|
|||||||
export default function NetworkDisplay({
|
export default function NetworkDisplay({
|
||||||
colored,
|
colored,
|
||||||
outline,
|
outline,
|
||||||
iconClassName,
|
|
||||||
indicatorSize,
|
indicatorSize,
|
||||||
disabled,
|
disabled,
|
||||||
labelProps,
|
labelProps,
|
||||||
@ -61,14 +60,7 @@ export default function NetworkDisplay({
|
|||||||
/>
|
/>
|
||||||
</LoadingIndicator>
|
</LoadingIndicator>
|
||||||
}
|
}
|
||||||
rightIcon={
|
rightIcon={<IconCaretDown size={16} className="network-display__icon" />}
|
||||||
iconClassName && (
|
|
||||||
<IconCaretDown
|
|
||||||
size={16}
|
|
||||||
className={classnames('network-display__icon', iconClassName)}
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
label={
|
label={
|
||||||
networkType === NETWORK_TYPE_RPC
|
networkType === NETWORK_TYPE_RPC
|
||||||
? networkNickname ?? t('privateNetwork')
|
? networkNickname ?? t('privateNetwork')
|
||||||
@ -100,7 +92,6 @@ NetworkDisplay.propTypes = {
|
|||||||
}),
|
}),
|
||||||
outline: PropTypes.bool,
|
outline: PropTypes.bool,
|
||||||
disabled: PropTypes.bool,
|
disabled: PropTypes.bool,
|
||||||
iconClassName: PropTypes.string,
|
|
||||||
onClick: PropTypes.func,
|
onClick: PropTypes.func,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -23,16 +23,10 @@ export default {
|
|||||||
disabled: {
|
disabled: {
|
||||||
control: 'boolean',
|
control: 'boolean',
|
||||||
},
|
},
|
||||||
iconClassName: {
|
|
||||||
control: 'text',
|
|
||||||
},
|
|
||||||
onClick: {
|
onClick: {
|
||||||
action: 'onClick',
|
action: 'onClick',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
args: {
|
|
||||||
iconClassName: 'caret',
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const DefaultStory = (args) => <NetworkDisplay {...args} />;
|
export const DefaultStory = (args) => <NetworkDisplay {...args} />;
|
||||||
|
Loading…
Reference in New Issue
Block a user