diff options
author | 2022-05-14 09:02:38 -0500 | |
---|---|---|
committer | 2022-05-14 09:02:38 -0500 | |
commit | e7b250401b1289038666103bc72cfc099a44a493 (patch) | |
tree | 4feda16297e250e76f64ad2310a57fb72067dd03 /src/components | |
parent | Typescript conversion (diff) | |
download | ferdium-app-e7b250401b1289038666103bc72cfc099a44a493.tar.gz ferdium-app-e7b250401b1289038666103bc72cfc099a44a493.tar.zst ferdium-app-e7b250401b1289038666103bc72cfc099a44a493.zip |
Added TODOs for tech debt
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/ui/Button.js | 1 | ||||
-rw-r--r-- | src/components/ui/ImageUpload.tsx | 1 | ||||
-rw-r--r-- | src/components/ui/InfoBar.js | 1 | ||||
-rw-r--r-- | src/components/ui/Infobox.js | 1 | ||||
-rw-r--r-- | src/components/ui/Input.js | 1 | ||||
-rw-r--r-- | src/components/ui/Link.js | 1 | ||||
-rw-r--r-- | src/components/ui/Loader.tsx | 1 | ||||
-rw-r--r-- | src/components/ui/Radio.tsx | 1 | ||||
-rw-r--r-- | src/components/ui/SearchInput.tsx | 1 | ||||
-rw-r--r-- | src/components/ui/Select.js | 1 | ||||
-rw-r--r-- | src/components/ui/ServiceIcon.js | 1 | ||||
-rw-r--r-- | src/components/ui/Slider.js | 1 | ||||
-rw-r--r-- | src/components/ui/StatusBarTargetUrl.js | 1 | ||||
-rw-r--r-- | src/components/ui/Toggle.js | 1 |
14 files changed, 14 insertions, 0 deletions
diff --git a/src/components/ui/Button.js b/src/components/ui/Button.js index a52f1cadb..882b39e69 100644 --- a/src/components/ui/Button.js +++ b/src/components/ui/Button.js | |||
@@ -4,6 +4,7 @@ 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 | // Can this file be merged into the './/button/index.tsx' file? | ||
7 | class Button extends Component { | 8 | class Button extends Component { |
8 | static propTypes = { | 9 | static propTypes = { |
9 | className: PropTypes.string, | 10 | className: PropTypes.string, |
diff --git a/src/components/ui/ImageUpload.tsx b/src/components/ui/ImageUpload.tsx index b07e211c2..c8a6cf54a 100644 --- a/src/components/ui/ImageUpload.tsx +++ b/src/components/ui/ImageUpload.tsx | |||
@@ -15,6 +15,7 @@ type Props = { | |||
15 | textUpload: string; | 15 | textUpload: string; |
16 | }; | 16 | }; |
17 | 17 | ||
18 | // Should this file be converted into the coding style similar to './toggle/index.tsx'? | ||
18 | class ImageUpload extends Component<Props> { | 19 | class ImageUpload extends Component<Props> { |
19 | static defaultProps = { | 20 | static defaultProps = { |
20 | multiple: false, | 21 | multiple: false, |
diff --git a/src/components/ui/InfoBar.js b/src/components/ui/InfoBar.js index c1a6013c2..e50e270bd 100644 --- a/src/components/ui/InfoBar.js +++ b/src/components/ui/InfoBar.js | |||
@@ -16,6 +16,7 @@ const messages = defineMessages({ | |||
16 | }, | 16 | }, |
17 | }); | 17 | }); |
18 | 18 | ||
19 | // Should this file be converted into the coding style similar to './toggle/index.tsx'? | ||
19 | class InfoBar extends Component { | 20 | class InfoBar extends Component { |
20 | static propTypes = { | 21 | static propTypes = { |
21 | // eslint-disable-next-line react/forbid-prop-types | 22 | // eslint-disable-next-line react/forbid-prop-types |
diff --git a/src/components/ui/Infobox.js b/src/components/ui/Infobox.js index 6634a6808..e05d17742 100644 --- a/src/components/ui/Infobox.js +++ b/src/components/ui/Infobox.js | |||
@@ -19,6 +19,7 @@ const messages = defineMessages({ | |||
19 | }, | 19 | }, |
20 | }); | 20 | }); |
21 | 21 | ||
22 | // Can this file be merged into the './infobox/index.tsx' file? | ||
22 | class Infobox extends Component { | 23 | class Infobox extends Component { |
23 | static propTypes = { | 24 | static propTypes = { |
24 | // eslint-disable-next-line react/forbid-prop-types | 25 | // eslint-disable-next-line react/forbid-prop-types |
diff --git a/src/components/ui/Input.js b/src/components/ui/Input.js index fa1b44699..77bae8101 100644 --- a/src/components/ui/Input.js +++ b/src/components/ui/Input.js | |||
@@ -16,6 +16,7 @@ const messages = defineMessages({ | |||
16 | }, | 16 | }, |
17 | }); | 17 | }); |
18 | 18 | ||
19 | // Can this file be merged into the './input/index.tsx' file? | ||
19 | class Input extends Component { | 20 | class Input extends Component { |
20 | static propTypes = { | 21 | static propTypes = { |
21 | field: PropTypes.instanceOf(Field).isRequired, | 22 | field: PropTypes.instanceOf(Field).isRequired, |
diff --git a/src/components/ui/Link.js b/src/components/ui/Link.js index 565547736..05d511a81 100644 --- a/src/components/ui/Link.js +++ b/src/components/ui/Link.js | |||
@@ -8,6 +8,7 @@ import { oneOrManyChildElements } from '../../prop-types'; | |||
8 | import { matchRoute } from '../../helpers/routing-helpers'; | 8 | import { matchRoute } from '../../helpers/routing-helpers'; |
9 | import { openExternalUrl } from '../../helpers/url-helpers'; | 9 | import { openExternalUrl } from '../../helpers/url-helpers'; |
10 | 10 | ||
11 | // Should this file be converted into the coding style similar to './toggle/index.tsx'? | ||
11 | // TODO: create container component for this component | 12 | // TODO: create container component for this component |
12 | class Link extends Component { | 13 | class Link extends Component { |
13 | onClick(e) { | 14 | onClick(e) { |
diff --git a/src/components/ui/Loader.tsx b/src/components/ui/Loader.tsx index e889fd054..d4ed0d6bb 100644 --- a/src/components/ui/Loader.tsx +++ b/src/components/ui/Loader.tsx | |||
@@ -12,6 +12,7 @@ type Props = { | |||
12 | stores: FerdiumStores; | 12 | stores: FerdiumStores; |
13 | }; | 13 | }; |
14 | 14 | ||
15 | // Can this file be merged into the './loader/index.tsx' file? | ||
15 | class LoaderComponent extends Component<Props> { | 16 | class LoaderComponent extends Component<Props> { |
16 | static defaultProps = { | 17 | static defaultProps = { |
17 | loaded: false, | 18 | loaded: false, |
diff --git a/src/components/ui/Radio.tsx b/src/components/ui/Radio.tsx index a033a5fe0..e6cb5d5a5 100644 --- a/src/components/ui/Radio.tsx +++ b/src/components/ui/Radio.tsx | |||
@@ -10,6 +10,7 @@ type Props = { | |||
10 | showLabel: boolean; | 10 | showLabel: boolean; |
11 | }; | 11 | }; |
12 | 12 | ||
13 | // Should this file be converted into the coding style similar to './toggle/index.tsx'? | ||
13 | class Radio extends Component<Props> { | 14 | class Radio extends Component<Props> { |
14 | static defaultProps = { | 15 | static defaultProps = { |
15 | focus: false, | 16 | focus: false, |
diff --git a/src/components/ui/SearchInput.tsx b/src/components/ui/SearchInput.tsx index 6a6a1692e..67ca469f0 100644 --- a/src/components/ui/SearchInput.tsx +++ b/src/components/ui/SearchInput.tsx | |||
@@ -17,6 +17,7 @@ type Props = { | |||
17 | autoFocus: boolean; | 17 | autoFocus: boolean; |
18 | }; | 18 | }; |
19 | 19 | ||
20 | // Should this file be converted into the coding style similar to './toggle/index.tsx'? | ||
20 | class SearchInput extends Component<Props> { | 21 | class SearchInput extends Component<Props> { |
21 | static defaultProps = { | 22 | static defaultProps = { |
22 | value: '', | 23 | value: '', |
diff --git a/src/components/ui/Select.js b/src/components/ui/Select.js index 0fc32e573..ca5ec9964 100644 --- a/src/components/ui/Select.js +++ b/src/components/ui/Select.js | |||
@@ -4,6 +4,7 @@ import { observer } from 'mobx-react'; | |||
4 | import { Field } from 'mobx-react-form'; | 4 | import { Field } from 'mobx-react-form'; |
5 | import classnames from 'classnames'; | 5 | import classnames from 'classnames'; |
6 | 6 | ||
7 | // Can this file be merged into the './select/index.tsx' file? | ||
7 | class Select extends Component { | 8 | class Select extends Component { |
8 | static propTypes = { | 9 | static propTypes = { |
9 | field: PropTypes.instanceOf(Field).isRequired, | 10 | field: PropTypes.instanceOf(Field).isRequired, |
diff --git a/src/components/ui/ServiceIcon.js b/src/components/ui/ServiceIcon.js index d403d107d..b05d791be 100644 --- a/src/components/ui/ServiceIcon.js +++ b/src/components/ui/ServiceIcon.js | |||
@@ -24,6 +24,7 @@ const styles = theme => ({ | |||
24 | }, | 24 | }, |
25 | }); | 25 | }); |
26 | 26 | ||
27 | // Should this file be converted into the coding style similar to './toggle/index.tsx'? | ||
27 | class ServiceIcon extends Component { | 28 | class ServiceIcon extends Component { |
28 | static propTypes = { | 29 | static propTypes = { |
29 | classes: PropTypes.object.isRequired, | 30 | classes: PropTypes.object.isRequired, |
diff --git a/src/components/ui/Slider.js b/src/components/ui/Slider.js index a581e7a65..90f4df1c4 100644 --- a/src/components/ui/Slider.js +++ b/src/components/ui/Slider.js | |||
@@ -4,6 +4,7 @@ import { observer } from 'mobx-react'; | |||
4 | import classnames from 'classnames'; | 4 | import classnames from 'classnames'; |
5 | import { Field } from 'mobx-react-form'; | 5 | import { Field } from 'mobx-react-form'; |
6 | 6 | ||
7 | // Should this file be converted into the coding style similar to './toggle/index.tsx'? | ||
7 | class Slider extends Component { | 8 | class Slider extends Component { |
8 | static propTypes = { | 9 | static propTypes = { |
9 | field: PropTypes.instanceOf(Field).isRequired, | 10 | field: PropTypes.instanceOf(Field).isRequired, |
diff --git a/src/components/ui/StatusBarTargetUrl.js b/src/components/ui/StatusBarTargetUrl.js index d8d329d52..3e0c98c5d 100644 --- a/src/components/ui/StatusBarTargetUrl.js +++ b/src/components/ui/StatusBarTargetUrl.js | |||
@@ -5,6 +5,7 @@ import classnames from 'classnames'; | |||
5 | 5 | ||
6 | import Appear from './effects/Appear'; | 6 | import Appear from './effects/Appear'; |
7 | 7 | ||
8 | // Should this file be converted into the coding style similar to './toggle/index.tsx'? | ||
8 | class StatusBarTargetUrl extends Component { | 9 | class StatusBarTargetUrl extends Component { |
9 | static propTypes = { | 10 | static propTypes = { |
10 | className: PropTypes.string, | 11 | className: PropTypes.string, |
diff --git a/src/components/ui/Toggle.js b/src/components/ui/Toggle.js index a82be690e..c1d86a7f6 100644 --- a/src/components/ui/Toggle.js +++ b/src/components/ui/Toggle.js | |||
@@ -4,6 +4,7 @@ import { observer } from 'mobx-react'; | |||
4 | import classnames from 'classnames'; | 4 | import classnames from 'classnames'; |
5 | import { Field } from 'mobx-react-form'; | 5 | import { Field } from 'mobx-react-form'; |
6 | 6 | ||
7 | // Can this file be merged into the './toggle/index.tsx' file? | ||
7 | class Toggle extends Component { | 8 | class Toggle extends Component { |
8 | static propTypes = { | 9 | static propTypes = { |
9 | field: PropTypes.instanceOf(Field).isRequired, | 10 | field: PropTypes.instanceOf(Field).isRequired, |