Skip to content

Commit

Permalink
🔥 Delete deprecated router decorator
Browse files Browse the repository at this point in the history
It doesn't seem to be used anywhere anymore.
  • Loading branch information
sergei-maertens committed Dec 17, 2024
1 parent 57510fc commit ac9e92c
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 ac9e92c

Please sign in to comment.