From f4b4416ea52d564bc2dbe543a82084ed98843ccc Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Fri, 30 Jul 2021 10:54:54 +0200 Subject: 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 --- uidev/src/withTheme/index.tsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'uidev/src/withTheme') diff --git a/uidev/src/withTheme/index.tsx b/uidev/src/withTheme/index.tsx index 17a1074d3..4ef649367 100644 --- a/uidev/src/withTheme/index.tsx +++ b/uidev/src/withTheme/index.tsx @@ -37,14 +37,12 @@ const Container = injectSheet(styles)(({ name, classes, story }: { name: string, )); -export const WithTheme = ({ children }: {children: React.ReactChild}) => { - return ( - <> - {themes.map((theme, key) => ( - - - +export const WithTheme = ({ children }: { children: React.ReactChild }) => ( + <> + {themes.map((theme, key) => ( + + + ))} - + ); -}; -- cgit v1.2.3-54-g00ecf