Skip to content

Commit

Permalink
Added withRouter decorator to Header in client-admin, to avoid bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
patcon committed Sep 23, 2024
1 parent 2a06723 commit 3be9ae5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stories/client-admin/Header.stories.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react'
import Header from '../../polis/client-admin/src/components/landers/lander-header'
import { withThemeUi } from '../../.storybook/decorators'
import { withRouter } from 'storybook-addon-remix-react-router';

export default {
title: 'Client-Admin/Header',
component: Header,
decorators: [withThemeUi],
decorators: [withRouter, withThemeUi],
}

const Template = (args) => <Header {...args} />
Expand Down

0 comments on commit 3be9ae5

Please sign in to comment.