Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit 41c986b

Browse files
committed
fix(storybook) Addresses issue with how story is exported (uses old and new export styles)
Signed-off-by: Jerome Simeon <[email protected]>
1 parent 8e30157 commit 41c986b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/storybook/src/stories/4-ContractEditor.stories.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ const Wrapper = styled.div`
6969
}
7070
`;
7171

72-
export default { title: 'Contract Editor' };
73-
7472
const templates = {
7573
'Optional Clause': 'https://templates.accordproject.org/archives/[email protected]',
7674
'Fixed Interest': 'https://templates.accordproject.org/archives/[email protected]',
@@ -210,6 +208,6 @@ contractEditor.story = {
210208
}
211209
};
212210

213-
const withProvider = (story) => <Provider store={store}>{story()}</Provider>
211+
const withProvider = (story) => <Provider store={store}>{story()}</Provider>;
214212

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

0 commit comments

Comments
 (0)