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

Fixing invalid prop type for ActionableMessage (ImportToken) (#12377)

This commit is contained in:
ryanml 2021-10-18 09:28:56 -07:00 committed by GitHub
parent 84e0547ac0
commit 54f57826c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -11,6 +11,7 @@ const CLASSNAME_WITH_RIGHT_BUTTON = 'actionable-message--with-right-button';
const typeHash = { const typeHash = {
warning: CLASSNAME_WARNING, warning: CLASSNAME_WARNING,
danger: CLASSNAME_DANGER, danger: CLASSNAME_DANGER,
default: '',
}; };
export default function ActionableMessage({ export default function ActionableMessage({
@ -20,7 +21,7 @@ export default function ActionableMessage({
className = '', className = '',
infoTooltipText = '', infoTooltipText = '',
withRightButton = false, withRightButton = false,
type = false, type = 'default',
useIcon = false, useIcon = false,
iconFillColor = '', iconFillColor = '',
}) { }) {

View File

@ -406,7 +406,6 @@ class ImportToken extends Component {
{this.context.t('enableFromSettings')} {this.context.t('enableFromSettings')}
</Button>, </Button>,
])} ])}
type={false}
withRightButton withRightButton
useIcon useIcon
iconFillColor="#037DD6" iconFillColor="#037DD6"