aboutsummaryrefslogtreecommitdiffstats
path: root/packages/ui/src
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-10-07 08:03:45 +0200
committerLibravatar GitHub <noreply@github.com>2021-10-07 08:03:45 +0200
commit31f8ada876b3aec45ffffcf82079eaacb69349fc (patch)
tree9f5752b7bbc42c9b5b3c2b02517732b3a2e5b868 /packages/ui/src
parentchore: simplify babel configuration (#2029) (diff)
downloadferdium-app-31f8ada876b3aec45ffffcf82079eaacb69349fc.tar.gz
ferdium-app-31f8ada876b3aec45ffffcf82079eaacb69349fc.tar.zst
ferdium-app-31f8ada876b3aec45ffffcf82079eaacb69349fc.zip
chore: upgrade react to latest (#2030)
Diffstat (limited to 'packages/ui/src')
-rw-r--r--packages/ui/src/badge/ProBadge.tsx2
-rw-r--r--packages/ui/src/badge/index.tsx4
-rw-r--r--packages/ui/src/headline/index.tsx6
-rw-r--r--packages/ui/src/icon/index.tsx2
-rw-r--r--packages/ui/src/infobox/index.tsx4
-rw-r--r--packages/ui/src/loader/index.tsx2
6 files changed, 10 insertions, 10 deletions
diff --git a/packages/ui/src/badge/ProBadge.tsx b/packages/ui/src/badge/ProBadge.tsx
index 63d5d673a..be7ed8e58 100644
--- a/packages/ui/src/badge/ProBadge.tsx
+++ b/packages/ui/src/badge/ProBadge.tsx
@@ -1,6 +1,6 @@
1import { mdiStar } from '@mdi/js'; 1import { mdiStar } from '@mdi/js';
2import classnames from 'classnames'; 2import classnames from 'classnames';
3import React, { Component } from 'react'; 3import { Component } from 'react';
4import injectStyle from 'react-jss'; 4import injectStyle from 'react-jss';
5 5
6import { Badge, Icon } from '..'; 6import { Badge, Icon } from '..';
diff --git a/packages/ui/src/badge/index.tsx b/packages/ui/src/badge/index.tsx
index 5dd735879..a8f3ebcbf 100644
--- a/packages/ui/src/badge/index.tsx
+++ b/packages/ui/src/badge/index.tsx
@@ -1,5 +1,5 @@
1import classnames from 'classnames'; 1import classnames from 'classnames';
2import React, { Component } from 'react'; 2import { Component, ReactNode } from 'react';
3import injectStyle from 'react-jss'; 3import injectStyle from 'react-jss';
4 4
5import { Theme } from '../../../theme'; 5import { Theme } from '../../../theme';
@@ -8,7 +8,7 @@ import { IWithStyle } from '../typings/generic';
8interface IProps extends IWithStyle { 8interface IProps extends IWithStyle {
9 type: string; 9 type: string;
10 className?: string; 10 className?: string;
11 children: React.ReactNode; 11 children: ReactNode;
12} 12}
13 13
14const badgeStyles = (theme: Theme) => { 14const badgeStyles = (theme: Theme) => {
diff --git a/packages/ui/src/headline/index.tsx b/packages/ui/src/headline/index.tsx
index bf3d4418c..b534a6298 100644
--- a/packages/ui/src/headline/index.tsx
+++ b/packages/ui/src/headline/index.tsx
@@ -1,5 +1,5 @@
1import classnames from 'classnames'; 1import classnames from 'classnames';
2import React, { Component } from 'react'; 2import { Component, createElement, ReactNode } from 'react';
3import injectStyle from 'react-jss'; 3import injectStyle from 'react-jss';
4 4
5import { Theme } from '../../../theme'; 5import { Theme } from '../../../theme';
@@ -8,7 +8,7 @@ import { IWithStyle, Omit } from '../typings/generic';
8interface IProps extends IWithStyle { 8interface IProps extends IWithStyle {
9 level?: number; 9 level?: number;
10 className?: string; 10 className?: string;
11 children: string | React.ReactNode; 11 children: string | ReactNode;
12 id?: string; 12 id?: string;
13} 13}
14 14
@@ -39,7 +39,7 @@ class HeadlineComponent extends Component<IProps> {
39 render() { 39 render() {
40 const { classes, level, className, children, id } = this.props; 40 const { classes, level, className, children, id } = this.props;
41 41
42 return React.createElement( 42 return createElement(
43 `h${level}`, 43 `h${level}`,
44 { 44 {
45 id, 45 id,
diff --git a/packages/ui/src/icon/index.tsx b/packages/ui/src/icon/index.tsx
index b644a9234..9753b399c 100644
--- a/packages/ui/src/icon/index.tsx
+++ b/packages/ui/src/icon/index.tsx
@@ -1,6 +1,6 @@
1import MdiIcon from '@mdi/react'; 1import MdiIcon from '@mdi/react';
2import classnames from 'classnames'; 2import classnames from 'classnames';
3import React, { Component } from 'react'; 3import { Component } from 'react';
4import injectStyle from 'react-jss'; 4import injectStyle from 'react-jss';
5 5
6import { Theme } from '../../../theme'; 6import { Theme } from '../../../theme';
diff --git a/packages/ui/src/infobox/index.tsx b/packages/ui/src/infobox/index.tsx
index 88cfdb620..7bad4a1f2 100644
--- a/packages/ui/src/infobox/index.tsx
+++ b/packages/ui/src/infobox/index.tsx
@@ -1,6 +1,6 @@
1import { mdiClose } from '@mdi/js'; 1import { mdiClose } from '@mdi/js';
2import classnames from 'classnames'; 2import classnames from 'classnames';
3import React, { Component } from 'react'; 3import { Component, ReactNode } from 'react';
4import injectStyle from 'react-jss'; 4import injectStyle from 'react-jss';
5 5
6import { Icon } from '..'; 6import { Icon } from '..';
@@ -16,7 +16,7 @@ interface IProps extends IWithStyle {
16 ctaOnClick?: () => void; 16 ctaOnClick?: () => void;
17 ctaLabel?: string; 17 ctaLabel?: string;
18 ctaLoading?: boolean; 18 ctaLoading?: boolean;
19 children: React.ReactNode; 19 children: ReactNode;
20 className: string; 20 className: string;
21} 21}
22 22
diff --git a/packages/ui/src/loader/index.tsx b/packages/ui/src/loader/index.tsx
index 244aa9dc9..0607bd48b 100644
--- a/packages/ui/src/loader/index.tsx
+++ b/packages/ui/src/loader/index.tsx
@@ -1,5 +1,5 @@
1import classnames from 'classnames'; 1import classnames from 'classnames';
2import React, { Component } from 'react'; 2import { 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