diff options
Diffstat (limited to 'src/components/ui/Button.js')
-rw-r--r-- | src/components/ui/Button.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/components/ui/Button.js b/src/components/ui/Button.js index 67c801d98..a52f1cadb 100644 --- a/src/components/ui/Button.js +++ b/src/components/ui/Button.js | |||
@@ -4,8 +4,6 @@ import { observer, inject } from 'mobx-react'; | |||
4 | import Loader from 'react-loader'; | 4 | import Loader from 'react-loader'; |
5 | import classnames from 'classnames'; | 5 | import classnames from 'classnames'; |
6 | 6 | ||
7 | @inject('stores') | ||
8 | @observer | ||
9 | class Button extends Component { | 7 | class Button extends Component { |
10 | static propTypes = { | 8 | static propTypes = { |
11 | className: PropTypes.string, | 9 | className: PropTypes.string, |
@@ -35,8 +33,6 @@ class Button extends Component { | |||
35 | htmlForm: '', | 33 | htmlForm: '', |
36 | }; | 34 | }; |
37 | 35 | ||
38 | element = null; | ||
39 | |||
40 | render() { | 36 | render() { |
41 | const { | 37 | const { |
42 | label, | 38 | label, |
@@ -92,4 +88,4 @@ class Button extends Component { | |||
92 | } | 88 | } |
93 | } | 89 | } |
94 | 90 | ||
95 | export default Button; | 91 | export default inject('stores')(observer(Button)); |