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/Button.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/Button.js')
-rw-r--r-- | src/components/ui/Button.js | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/components/ui/Button.js b/src/components/ui/Button.js index 5066b9c06..f6c9fd3d3 100644 --- a/src/components/ui/Button.js +++ b/src/components/ui/Button.js | |||
@@ -4,7 +4,9 @@ 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 | export default @inject('stores') @observer class Button extends Component { | 7 | @inject('stores') |
8 | @observer | ||
9 | class Button extends Component { | ||
8 | static propTypes = { | 10 | static propTypes = { |
9 | className: PropTypes.string, | 11 | className: PropTypes.string, |
10 | label: PropTypes.string.isRequired, | 12 | label: PropTypes.string.isRequired, |
@@ -26,7 +28,7 @@ export default @inject('stores') @observer class Button extends Component { | |||
26 | static defaultProps = { | 28 | static defaultProps = { |
27 | className: null, | 29 | className: null, |
28 | disabled: false, | 30 | disabled: false, |
29 | onClick: () => { }, | 31 | onClick: () => {}, |
30 | type: 'button', | 32 | type: 'button', |
31 | buttonType: '', | 33 | buttonType: '', |
32 | loaded: true, | 34 | loaded: true, |
@@ -76,7 +78,11 @@ export default @inject('stores') @observer class Button extends Component { | |||
76 | loaded={loaded} | 78 | loaded={loaded} |
77 | lines={10} | 79 | lines={10} |
78 | scale={0.4} | 80 | scale={0.4} |
79 | color={buttonType !== 'secondary' ? '#FFF' : this.props.stores.settings.app.accentColor} | 81 | color={ |
82 | buttonType !== 'secondary' | ||
83 | ? '#FFF' | ||
84 | : this.props.stores.settings.app.accentColor | ||
85 | } | ||
80 | component="span" | 86 | component="span" |
81 | /> | 87 | /> |
82 | {label} | 88 | {label} |
@@ -85,3 +91,5 @@ export default @inject('stores') @observer class Button extends Component { | |||
85 | ); | 91 | ); |
86 | } | 92 | } |
87 | } | 93 | } |
94 | |||
95 | export default Button; | ||