From 0c8c2725217e4d8f4c055d02ce5fe875e7edadbe Mon Sep 17 00:00:00 2001 From: ryanml Date: Fri, 18 Mar 2022 10:40:44 -0700 Subject: [PATCH] Removing iconClassName prop from NetworkDisplay (#14035) --- ui/components/app/network-display/network-display.js | 11 +---------- .../app/network-display/network-display.stories.js | 6 ------ 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/ui/components/app/network-display/network-display.js b/ui/components/app/network-display/network-display.js index 5fd28809c..29e90ff3d 100644 --- a/ui/components/app/network-display/network-display.js +++ b/ui/components/app/network-display/network-display.js @@ -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({ /> } - rightIcon={ - iconClassName && ( - - ) - } + rightIcon={} 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, }; diff --git a/ui/components/app/network-display/network-display.stories.js b/ui/components/app/network-display/network-display.stories.js index 42019d5d4..7799589bb 100644 --- a/ui/components/app/network-display/network-display.stories.js +++ b/ui/components/app/network-display/network-display.stories.js @@ -23,16 +23,10 @@ export default { disabled: { control: 'boolean', }, - iconClassName: { - control: 'text', - }, onClick: { action: 'onClick', }, }, - args: { - iconClassName: 'caret', - }, }; export const DefaultStory = (args) => ;