aboutsummaryrefslogtreecommitdiffstats
path: root/packages/ui/src/loader/index.tsx
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-07-30 10:54:54 +0200
committerLibravatar GitHub <noreply@github.com>2021-07-30 14:24:54 +0530
commitf4b4416ea52d564bc2dbe543a82084ed98843ccc (patch)
tree7ca6b23571c86458a6b799746c91a7191de02715 /packages/ui/src/loader/index.tsx
parent5.6.1-nightly.8 [skip ci] (diff)
downloadferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.tar.gz
ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.tar.zst
ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.zip
chore: migrate from tslint to @typescript-eslint (#1706)
- update .eslintrc to work for .js and .ts - update devDependencies - lint properly both root /src and nested /packages - update webhint recommended setting for tsconfig.json to shrink output - Manage all eslint rules from the repo root - escape single quotes in scripts to please windows build Co-authored-by: Vijay A <avijayr@protonmail.com>
Diffstat (limited to 'packages/ui/src/loader/index.tsx')
-rw-r--r--packages/ui/src/loader/index.tsx10
1 files changed, 2 insertions, 8 deletions
diff --git a/packages/ui/src/loader/index.tsx b/packages/ui/src/loader/index.tsx
index e2701a8e9..244aa9dc9 100644
--- a/packages/ui/src/loader/index.tsx
+++ b/packages/ui/src/loader/index.tsx
@@ -3,7 +3,6 @@ import React, { Component } from 'react';
3import injectStyle, { withTheme } from 'react-jss'; 3import injectStyle, { withTheme } from 'react-jss';
4import ReactLoader from 'react-loader'; 4import ReactLoader from 'react-loader';
5 5
6import { Theme } from '../../../theme';
7import { IWithStyle } from '../typings/generic'; 6import { IWithStyle } from '../typings/generic';
8 7
9interface IProps extends IWithStyle { 8interface IProps extends IWithStyle {
@@ -11,7 +10,7 @@ interface IProps extends IWithStyle {
11 color?: string; 10 color?: string;
12} 11}
13 12
14const styles = (theme: Theme) => ({ 13const styles = () => ({
15 container: { 14 container: {
16 position: 'relative', 15 position: 'relative',
17 height: 60, 16 height: 60,
@@ -20,12 +19,7 @@ const styles = (theme: Theme) => ({
20 19
21class LoaderComponent extends Component<IProps> { 20class LoaderComponent extends Component<IProps> {
22 render() { 21 render() {
23 const { 22 const { classes, className, color, theme } = this.props;
24 classes,
25 className,
26 color,
27 theme,
28 } = this.props;
29 23
30 return ( 24 return (
31 <div 25 <div