diff options
author | 2021-09-13 14:45:46 +0200 | |
---|---|---|
committer | 2021-09-13 14:45:46 +0200 | |
commit | 537697a6e9757f118d09d9e76362ba1ff617e2c6 (patch) | |
tree | bc55447115e385137684e84697a8c15d2199b8d5 /src/components/ui/FAB.js | |
parent | Bumped up version to: 5.6.3-nightly.0 [skip ci] (diff) | |
download | ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.tar.gz ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.tar.zst ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.zip |
chore: upgrade intl dependencies (#1920)
Diffstat (limited to 'src/components/ui/FAB.js')
-rw-r--r-- | src/components/ui/FAB.js | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/components/ui/FAB.js b/src/components/ui/FAB.js index 633edbe2c..a3aa06bc9 100644 --- a/src/components/ui/FAB.js +++ b/src/components/ui/FAB.js | |||
@@ -8,7 +8,8 @@ import classnames from 'classnames'; | |||
8 | 8 | ||
9 | import { oneOrManyChildElements } from '../../prop-types'; | 9 | import { oneOrManyChildElements } from '../../prop-types'; |
10 | 10 | ||
11 | export default @observer class Button extends Component { | 11 | @observer |
12 | class Button extends Component { | ||
12 | static propTypes = { | 13 | static propTypes = { |
13 | className: PropTypes.string, | 14 | className: PropTypes.string, |
14 | disabled: PropTypes.bool, | 15 | disabled: PropTypes.bool, |
@@ -21,7 +22,7 @@ export default @observer class Button extends Component { | |||
21 | static defaultProps = { | 22 | static defaultProps = { |
22 | className: null, | 23 | className: null, |
23 | disabled: false, | 24 | disabled: false, |
24 | onClick: () => { }, | 25 | onClick: () => {}, |
25 | type: 'button', | 26 | type: 'button', |
26 | htmlForm: '', | 27 | htmlForm: '', |
27 | }; | 28 | }; |
@@ -29,14 +30,8 @@ export default @observer class Button extends Component { | |||
29 | element = null; | 30 | element = null; |
30 | 31 | ||
31 | render() { | 32 | render() { |
32 | const { | 33 | const { className, disabled, onClick, type, children, htmlForm } = |
33 | className, | 34 | this.props; |
34 | disabled, | ||
35 | onClick, | ||
36 | type, | ||
37 | children, | ||
38 | htmlForm, | ||
39 | } = this.props; | ||
40 | 35 | ||
41 | const buttonProps = { | 36 | const buttonProps = { |
42 | className: classnames({ | 37 | className: classnames({ |
@@ -66,3 +61,5 @@ export default @observer class Button extends Component { | |||
66 | ); | 61 | ); |
67 | } | 62 | } |
68 | } | 63 | } |
64 | |||
65 | export default Button; | ||