Skip to content

Commit

Permalink
Merge pull request #755 from open-formulieren/chore/delete-deprecated…
Browse files Browse the repository at this point in the history
…-code

🔥 Delete deprecated router decorator
  • Loading branch information
sergei-maertens authored Dec 17, 2024
2 parents 6dc51e4 + ac9e92c commit 8690031
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/story-utils/decorators.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,6 @@ const RouterStoryWrapper = ({route = '', children}) => {
);
};

export const DeprecatedRouterDecorator = (Story, {args: {routerArgs = {}}}) => {
const {route, ...rest} = routerArgs;
return (
<MemoryRouter {...rest}>
<RouterStoryWrapper route={route}>
<Story />
</RouterStoryWrapper>
</MemoryRouter>
);
};

export const FormikDecorator = (Story, context) => {
const isDisabled = context.parameters?.formik?.disable ?? false;
if (isDisabled) {
Expand Down

0 comments on commit 8690031

Please sign in to comment.