Skip to content

Commit

Permalink
minor housekeeping changes
Browse files Browse the repository at this point in the history
  • Loading branch information
South-Paw committed Jan 24, 2021
1 parent 9880b81 commit 98f01ec
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
build-dir: "./storybook-static"
comment-on-commit: true

publishPackage:
name: Publish
Expand Down
2 changes: 1 addition & 1 deletion .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { addons } from '@storybook/addons';
import { create } from '@storybook/theming/create';
import { create } from '@storybook/theming';

addons.setConfig({
theme: create({
Expand Down
19 changes: 10 additions & 9 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import { addDecorator } from '@storybook/react';
import React from 'react';
import { Box, injectGlobalStyles, ThemeProvider } from '../src';
import { injectGlobalStyles, ThemeProvider } from '../src';

export const parameters = {
controls: { expanded: true },
layout: 'fullscreen',
};

const { GlobalStyle } = injectGlobalStyles();

addDecorator((storyFn) => (
const withThemeProvider = (Story) => (
<ThemeProvider>
<GlobalStyle />
<Box p={4}>{storyFn()}</Box>
<Story />
</ThemeProvider>
));
);

export const parameters = {
controls: { expanded: true },
layout: 'fullscreen',
};
export const decorators = [withThemeProvider];

0 comments on commit 98f01ec

Please sign in to comment.