aboutsummaryrefslogtreecommitdiffstats
path: root/uidev/src/withTheme/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'uidev/src/withTheme/index.tsx')
-rw-r--r--uidev/src/withTheme/index.tsx16
1 files changed, 7 insertions, 9 deletions
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,
37 </article> 37 </article>
38)); 38));
39 39
40export const WithTheme = ({ children }: {children: React.ReactChild}) => { 40export const WithTheme = ({ children }: { children: React.ReactChild }) => (
41 return ( 41 <>
42 <> 42 {themes.map((theme, key) => (
43 {themes.map((theme, key) => ( 43 <ThemeProvider key={key} theme={theme.variables}>
44 <ThemeProvider key={key} theme={theme.variables}> 44 <Container story={children} name={theme.name} />
45 <Container story={children} name={theme.name} /> 45 </ThemeProvider>
46 </ThemeProvider>
47 ))} 46 ))}
48 </> 47 </>
49 ); 48 );
50};