diff --git a/ui/app/components/ui/button/button.component.js b/ui/app/components/ui/button/button.component.js index 39e81317cc32..a43c140a287f 100644 --- a/ui/app/components/ui/button/button.component.js +++ b/ui/app/components/ui/button/button.component.js @@ -1,4 +1,4 @@ -import React, { Component } from 'react' +import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' @@ -24,33 +24,35 @@ const typeHash = { 'first-time': CLASSNAME_FIRST_TIME, } -export default class Button extends Component { - static propTypes = { - type: PropTypes.string, - large: PropTypes.bool, - className: PropTypes.string, - children: PropTypes.oneOfType([ - PropTypes.string, - PropTypes.array, - PropTypes.element, - ]), - } +const Button = ({ type, submit, large, children, className, ...buttonProps }) => ( + +) - render () { - const { type, large, className, ...buttonProps } = this.props +Button.propTypes = { + type: PropTypes.string, + submit: PropTypes.bool, + large: PropTypes.bool, + className: PropTypes.string, + children: PropTypes.oneOfType([ + PropTypes.string, + PropTypes.array, + PropTypes.element, + ]), +} - return ( - - ) - } +Button.defaultProps = { + submit: false, } + +export default Button diff --git a/ui/app/pages/first-time-flow/create-password/import-with-seed-phrase/import-with-seed-phrase.component.js b/ui/app/pages/first-time-flow/create-password/import-with-seed-phrase/import-with-seed-phrase.component.js index e09327f32677..12eb4900f0b5 100644 --- a/ui/app/pages/first-time-flow/create-password/import-with-seed-phrase/import-with-seed-phrase.component.js +++ b/ui/app/pages/first-time-flow/create-password/import-with-seed-phrase/import-with-seed-phrase.component.js @@ -297,9 +297,9 @@ export default class ImportWithSeedPhrase extends PureComponent {