Skip to content

Commit

Permalink
fix(storybook) Addresses issue with how story is exported (uses old a…
Browse files Browse the repository at this point in the history
…nd new export styles)

Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed Aug 4, 2020
1 parent 8e30157 commit 41c986b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/storybook/src/stories/4-ContractEditor.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ const Wrapper = styled.div`
}
`;

export default { title: 'Contract Editor' };

const templates = {
'Optional Clause': 'https://templates.accordproject.org/archives/[email protected]',
'Fixed Interest': 'https://templates.accordproject.org/archives/[email protected]',
Expand Down Expand Up @@ -210,6 +208,6 @@ contractEditor.story = {
}
};

const withProvider = (story) => <Provider store={store}>{story()}</Provider>
const withProvider = (story) => <Provider store={store}>{story()}</Provider>;

storiesOf("ContractEditor", module).addDecorator(withProvider);
export default { title: 'Contract Editor', decorators: [withProvider] };

0 comments on commit 41c986b

Please sign in to comment.