diff options
author | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-06-23 20:39:18 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-23 17:09:18 +0200 |
commit | 4d26ffd4805c234e4b0592ae5aa9254e8c3206fd (patch) | |
tree | 6e1e9dd01f53677c40482e45cea3646e952750a9 /src/components/ui/FAB.js | |
parent | Added new message when the user doesn't find a service (but that is present i... (diff) | |
download | ferdium-app-4d26ffd4805c234e4b0592ae5aa9254e8c3206fd.tar.gz ferdium-app-4d26ffd4805c234e4b0592ae5aa9254e8c3206fd.tar.zst ferdium-app-4d26ffd4805c234e4b0592ae5aa9254e8c3206fd.zip |
Upgraded eslint and fixed all the reported errors. (#1549)
Diffstat (limited to 'src/components/ui/FAB.js')
-rw-r--r-- | src/components/ui/FAB.js | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/components/ui/FAB.js b/src/components/ui/FAB.js index 9359a3c6c..633edbe2c 100644 --- a/src/components/ui/FAB.js +++ b/src/components/ui/FAB.js | |||
@@ -3,23 +3,19 @@ | |||
3 | */ | 3 | */ |
4 | import React, { Component } from 'react'; | 4 | import React, { Component } from 'react'; |
5 | import PropTypes from 'prop-types'; | 5 | import PropTypes from 'prop-types'; |
6 | import { observer, inject } from 'mobx-react'; | 6 | import { observer } from 'mobx-react'; |
7 | import classnames from 'classnames'; | 7 | import classnames from 'classnames'; |
8 | 8 | ||
9 | export default @inject('stores') @observer class Button extends Component { | 9 | import { oneOrManyChildElements } from '../../prop-types'; |
10 | |||
11 | export default @observer class Button extends Component { | ||
10 | static propTypes = { | 12 | static propTypes = { |
11 | className: PropTypes.string, | 13 | className: PropTypes.string, |
12 | disabled: PropTypes.bool, | 14 | disabled: PropTypes.bool, |
13 | onClick: PropTypes.func, | 15 | onClick: PropTypes.func, |
14 | type: PropTypes.string, | 16 | type: PropTypes.string, |
17 | children: oneOrManyChildElements.isRequired, | ||
15 | htmlForm: PropTypes.string, | 18 | htmlForm: PropTypes.string, |
16 | stores: PropTypes.shape({ | ||
17 | settings: PropTypes.shape({ | ||
18 | app: PropTypes.shape({ | ||
19 | accentColor: PropTypes.string.isRequired, | ||
20 | }).isRequired, | ||
21 | }).isRequired, | ||
22 | }).isRequired, | ||
23 | }; | 19 | }; |
24 | 20 | ||
25 | static defaultProps = { | 21 | static defaultProps = { |