Skip to content

Commit

Permalink
Changed storybook config folder name; updated package.json to work wi…
Browse files Browse the repository at this point in the history
…th the changes
  • Loading branch information
wrigh393 committed Mar 29, 2021
1 parent 2752898 commit 4c5a0e9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"venv:freeze": "cd api/ && venv/bin/pip freeze | grep -v 'pkg-resources' > requirements.txt",
"test": "react-scripts test",
"eject": "react-scripts eject",
"storybook": "start-storybook -p 6006 -s public",
"build-storybook": "build-storybook -s public"
"storybook": "start-storybook -p 6006 -s public -c storybook",
"build-storybook": "build-storybook -s public -c storybook"
},
"eslintConfig": {
"extends": "react-app"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 4 additions & 9 deletions .storybook/preview.js → storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useState } from "react";
import ItemProvider from '../src/components/ItemProvider';
import { ThemeProvider } from "@material-ui/core/styles";
import webqueueTheme from "../src/theme";
import { Paper } from "@material-ui/core";



Expand All @@ -14,8 +15,8 @@ export const globalTypes = {
toolbar: {
icon: 'mirror',
items: [
{value:true, title: "Dark Mode active",},
{value:false, title: "Dark Mode off",}
{ value: true, title: "Dark Mode active", icon: "contrast" },
{ value: false, title: "Dark Mode off", icon: "switchalt" }
],
},
},
Expand All @@ -27,7 +28,7 @@ const withThemeProvider = (Story, context) => {
const theme = webqueueTheme(context.globals.theme);
return (
<ThemeProvider theme={theme} >
<Story {...context} />
<Story {...context} />
</ThemeProvider>
)
}
Expand All @@ -49,10 +50,4 @@ export const parameters = {
order: ['Introduction', 'Components']
},
},
backgrounds: {
values: [
{ name: 'red', value: '#f00' },
{ name: 'green', value: '#0f0' },
],
},
}

0 comments on commit 4c5a0e9

Please sign in to comment.