Skip to content

Commit

Permalink
✅ [open-formulieren/open-forms#4929] Fix story args
Browse files Browse the repository at this point in the history
The props are moved to the parent context instead so that the component
itself can be statically declared in the routes array.
  • Loading branch information
sergei-maertens committed Jan 13, 2025
1 parent 2747462 commit fcddac3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/CoSign/CoSignDone.stories.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
import {fn} from '@storybook/test';
import {withRouter} from 'storybook-addon-remix-react-router';

import {buildForm} from 'api-mocks';
import {withForm} from 'story-utils/decorators';

import {CosignProvider} from './Context';
import CosignDone from './CosignDone';

export default {
title: 'Views / Cosign / Done',
component: CosignDone,
decorators: [withForm, withRouter],
decorators: [
(Story, {args}) => (
<CosignProvider reportDownloadUrl={args.reportDownloadUrl} onCosignComplete={fn()}>
<Story />
</CosignProvider>
),
withForm,
withRouter,
],
args: {
reportDownloadUrl: '#',
},
Expand Down

0 comments on commit fcddac3

Please sign in to comment.