diff --git a/ui/app/components/ui/button/button.component.js b/ui/app/components/ui/button/button.component.js
index 6b19295c1e54..8cccdee59879 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,42 @@ 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 2a9238461662..504f0d260dbe 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
@@ -307,9 +307,9 @@ export default class ImportWithSeedPhrase extends PureComponent {