aboutsummaryrefslogtreecommitdiffstats
path: root/.storybook
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-01-07 23:53:32 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-01-07 23:53:32 +0100
commit8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf (patch)
tree899a872633f8c87a7ebb067b40b1ff1369851527 /.storybook
parentMerge (diff)
downloadferdium-app-8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf.tar.gz
ferdium-app-8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf.tar.zst
ferdium-app-8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf.zip
wip
Diffstat (limited to '.storybook')
-rw-r--r--.storybook/withTheme/index.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/.storybook/withTheme/index.tsx b/.storybook/withTheme/index.tsx
index b357aa658..b2f80f438 100644
--- a/.storybook/withTheme/index.tsx
+++ b/.storybook/withTheme/index.tsx
@@ -2,7 +2,9 @@ import React from 'react';
2import { Classes } from 'jss'; 2import { Classes } from 'jss';
3import injectSheet, { ThemeProvider } from 'react-jss'; 3import injectSheet, { ThemeProvider } from 'react-jss';
4import addons, { makeDecorator } from '@storybook/addons'; 4import addons, { makeDecorator } from '@storybook/addons';
5import theme, { Theme, ThemeType } from '../../packages/theme/src'; 5import theme, { ThemeType, Theme } from '@meetfranz/theme';
6
7console.log(theme);
6 8
7const defaultTheme = { 9const defaultTheme = {
8 name: 'Default', 10 name: 'Default',
@@ -29,7 +31,7 @@ const styles = (theme: Theme) => ({
29 }, 31 },
30}); 32});
31 33
32const Container = injectSheet(styles)(({ name, classes, story }: { name: string, classes: Classes, story: React.ReactNode }) => ( 34const Container = injectSheet(styles)(({ name, classes, story }: { name: string, classes: Classes, story: any }) => (
33 <article> 35 <article>
34 <h1 className={classes.title}>{name}</h1> 36 <h1 className={classes.title}>{name}</h1>
35 <div className={classes.container}> 37 <div className={classes.container}>