aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-07-25 08:16:50 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-07-25 08:17:10 +0530
commitcf282aa351cbc58691fb1b2fb4764830247cdbe8 (patch)
tree1a6ac4c9abd8b3de9d358016a5065da86cdd8510 /src/components/ui
parent6.0.1-nightly.3 [skip ci] (diff)
downloadferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.tar.gz
ferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.tar.zst
ferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.zip
eslint needs to be executed at the top-level to actually workv6.0.1-nightly.3
Diffstat (limited to 'src/components/ui')
-rw-r--r--src/components/ui/ColorPickerInput.tsx15
-rw-r--r--src/components/ui/FullscreenLoader/index.js2
-rw-r--r--src/components/ui/loader/index.tsx4
-rw-r--r--src/components/ui/select/index.tsx4
-rw-r--r--src/components/ui/textarea/index.tsx4
-rw-r--r--src/components/ui/wrapper/index.tsx4
6 files changed, 11 insertions, 22 deletions
diff --git a/src/components/ui/ColorPickerInput.tsx b/src/components/ui/ColorPickerInput.tsx
index 8a4d3129a..710d05586 100644
--- a/src/components/ui/ColorPickerInput.tsx
+++ b/src/components/ui/ColorPickerInput.tsx
@@ -8,7 +8,7 @@ interface IProps {
8 field: Field; 8 field: Field;
9 className?: string; 9 className?: string;
10 focus?: boolean; 10 focus?: boolean;
11}; 11}
12 12
13class ColorPickerInput extends Component<IProps> { 13class ColorPickerInput extends Component<IProps> {
14 static defaultProps = { 14 static defaultProps = {
@@ -34,16 +34,13 @@ class ColorPickerInput extends Component<IProps> {
34 this.inputElement?.focus(); 34 this.inputElement?.focus();
35 } 35 }
36 36
37 handleChangeComplete = (color: { hex: string; }) => { 37 handleChangeComplete = (color: { hex: string }) => {
38 const { field } = this.props; 38 const { field } = this.props;
39 field.value = color.hex 39 field.value = color.hex;
40 }; 40 };
41 41
42 render() { 42 render() {
43 const { 43 const { field, className } = this.props;
44 field,
45 className,
46 } = this.props;
47 44
48 let { type } = field; 45 let { type } = field;
49 type = 'text'; 46 type = 'text';
@@ -57,8 +54,8 @@ class ColorPickerInput extends Component<IProps> {
57 })} 54 })}
58 > 55 >
59 <SliderPicker 56 <SliderPicker
60 color={ field.value } 57 color={field.value}
61 onChangeComplete={ this.handleChangeComplete } 58 onChangeComplete={this.handleChangeComplete}
62 id={field.id} 59 id={field.id}
63 type={type} 60 type={type}
64 className="franz-form__input" 61 className="franz-form__input"
diff --git a/src/components/ui/FullscreenLoader/index.js b/src/components/ui/FullscreenLoader/index.js
index 983e7ea6c..f8c6b92ee 100644
--- a/src/components/ui/FullscreenLoader/index.js
+++ b/src/components/ui/FullscreenLoader/index.js
@@ -23,7 +23,7 @@ class FullscreenLoader extends Component {
23 className: null, 23 className: null,
24 spinnerColor: null, 24 spinnerColor: null,
25 children: null, 25 children: null,
26 title: null 26 title: null,
27 }; 27 };
28 28
29 render() { 29 render() {
diff --git a/src/components/ui/loader/index.tsx b/src/components/ui/loader/index.tsx
index 4d52f320e..45f81ff3b 100644
--- a/src/components/ui/loader/index.tsx
+++ b/src/components/ui/loader/index.tsx
@@ -41,6 +41,4 @@ class LoaderComponent extends Component<IProps> {
41 } 41 }
42} 42}
43 43
44export default injectStyle(styles, { injectTheme: true })( 44export default injectStyle(styles, { injectTheme: true })(LoaderComponent);
45 LoaderComponent,
46);
diff --git a/src/components/ui/select/index.tsx b/src/components/ui/select/index.tsx
index 1ce6c674b..805836130 100644
--- a/src/components/ui/select/index.tsx
+++ b/src/components/ui/select/index.tsx
@@ -463,6 +463,4 @@ class SelectComponent extends Component<IProps> {
463 } 463 }
464} 464}
465 465
466export default injectStyle(styles, { injectTheme: true })( 466export default injectStyle(styles, { injectTheme: true })(SelectComponent);
467 SelectComponent,
468);
diff --git a/src/components/ui/textarea/index.tsx b/src/components/ui/textarea/index.tsx
index 6796ab83d..d4ea424be 100644
--- a/src/components/ui/textarea/index.tsx
+++ b/src/components/ui/textarea/index.tsx
@@ -121,6 +121,4 @@ class TextareaComponent extends Component<IProps> {
121 } 121 }
122} 122}
123 123
124export default injectSheet(styles, { injectTheme: true })( 124export default injectSheet(styles, { injectTheme: true })(TextareaComponent);
125 TextareaComponent,
126);
diff --git a/src/components/ui/wrapper/index.tsx b/src/components/ui/wrapper/index.tsx
index e7477a25c..d733d050e 100644
--- a/src/components/ui/wrapper/index.tsx
+++ b/src/components/ui/wrapper/index.tsx
@@ -33,6 +33,4 @@ class WrapperComponent extends Component<IProps> {
33 } 33 }
34} 34}
35 35
36export default injectStyle(styles, { injectTheme: true })( 36export default injectStyle(styles, { injectTheme: true })(WrapperComponent);
37 WrapperComponent,
38);