diff options
Diffstat (limited to 'src/components/ui')
-rw-r--r-- | src/components/ui/Button.js | 2 | ||||
-rw-r--r-- | src/components/ui/FAB.tsx | 2 | ||||
-rw-r--r-- | src/components/ui/ImageUpload.tsx | 7 | ||||
-rw-r--r-- | src/components/ui/Tabs/TabItem.tsx | 4 |
4 files changed, 4 insertions, 11 deletions
diff --git a/src/components/ui/Button.js b/src/components/ui/Button.js index 67c801d98..d90a8d62d 100644 --- a/src/components/ui/Button.js +++ b/src/components/ui/Button.js | |||
@@ -35,8 +35,6 @@ class Button extends Component { | |||
35 | htmlForm: '', | 35 | htmlForm: '', |
36 | }; | 36 | }; |
37 | 37 | ||
38 | element = null; | ||
39 | |||
40 | render() { | 38 | render() { |
41 | const { | 39 | const { |
42 | label, | 40 | label, |
diff --git a/src/components/ui/FAB.tsx b/src/components/ui/FAB.tsx index 583c9d556..0d871e948 100644 --- a/src/components/ui/FAB.tsx +++ b/src/components/ui/FAB.tsx | |||
@@ -23,8 +23,6 @@ class Button extends Component<Props> { | |||
23 | htmlForm: '', | 23 | htmlForm: '', |
24 | }; | 24 | }; |
25 | 25 | ||
26 | element = null; | ||
27 | |||
28 | render() { | 26 | render() { |
29 | const { className, disabled, onClick, type, children, htmlForm } = | 27 | const { className, disabled, onClick, type, children, htmlForm } = |
30 | this.props; | 28 | this.props; |
diff --git a/src/components/ui/ImageUpload.tsx b/src/components/ui/ImageUpload.tsx index 118e6b206..52c097ef0 100644 --- a/src/components/ui/ImageUpload.tsx +++ b/src/components/ui/ImageUpload.tsx | |||
@@ -2,7 +2,7 @@ import { Component } from 'react'; | |||
2 | import { observer } from 'mobx-react'; | 2 | import { observer } from 'mobx-react'; |
3 | import { Field } from 'mobx-react-form'; | 3 | import { Field } from 'mobx-react-form'; |
4 | import classnames from 'classnames'; | 4 | import classnames from 'classnames'; |
5 | import Dropzone, { DropzoneRef } from 'react-dropzone'; | 5 | import Dropzone from 'react-dropzone'; |
6 | import { mdiDelete, mdiFileImage } from '@mdi/js'; | 6 | import { mdiDelete, mdiFileImage } from '@mdi/js'; |
7 | import { isWindows } from '../../environment'; | 7 | import { isWindows } from '../../environment'; |
8 | import { Icon } from './icon'; | 8 | import { Icon } from './icon'; |
@@ -25,8 +25,6 @@ class ImageUpload extends Component<Props> { | |||
25 | path: null, | 25 | path: null, |
26 | }; | 26 | }; |
27 | 27 | ||
28 | dropzoneRef: DropzoneRef | null = null; | ||
29 | |||
30 | onDrop(acceptedFiles) { | 28 | onDrop(acceptedFiles) { |
31 | const { field } = this.props; | 29 | const { field } = this.props; |
32 | 30 | ||
@@ -85,9 +83,6 @@ class ImageUpload extends Component<Props> { | |||
85 | </> | 83 | </> |
86 | ) : ( | 84 | ) : ( |
87 | <Dropzone | 85 | <Dropzone |
88 | ref={node => { | ||
89 | this.dropzoneRef = node; | ||
90 | }} | ||
91 | onDrop={this.onDrop.bind(this)} | 86 | onDrop={this.onDrop.bind(this)} |
92 | multiple={multiple} | 87 | multiple={multiple} |
93 | accept="image/jpeg, image/png, image/svg+xml" | 88 | accept="image/jpeg, image/png, image/svg+xml" |
diff --git a/src/components/ui/Tabs/TabItem.tsx b/src/components/ui/Tabs/TabItem.tsx index 9fcc3c41e..81ea0ea2b 100644 --- a/src/components/ui/Tabs/TabItem.tsx +++ b/src/components/ui/Tabs/TabItem.tsx | |||
@@ -1 +1,3 @@ | |||
1 | export const TabItem = ({ children }) => <>{children}</>; | 1 | export const TabItem = ({ children }) => { |
2 | children; | ||
3 | }; | ||