Skip to content

Commit

Permalink
fix: Update Footer.stories.js to fix the storybook - refs #265857
Browse files Browse the repository at this point in the history
  • Loading branch information
dobri1408 authored Aug 30, 2024
1 parent 85501d6 commit b72d24f
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions src/ui/Footer/Footer.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,33 @@ import Industry from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets
import Marine from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/marine.svg';
import Eionet from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/eionet.svg';
import EEA from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/eea-logo-white.svg';
import configureStore from 'redux-mock-store';
import { Provider } from 'react-redux';

export default {
title: 'Layout/Footer',
component: Footer,
argTypes: {},
};

const mockStore = configureStore();
const store = mockStore({
intl: {
locale: 'en',
messages: {},
},
});

const Template = (args) => (
<Footer>
<Footer.SubFooter {...args} />
<Footer.Header>{args.header}</Footer.Header>
<Footer.SitesButton {...args} />
<Footer.Social {...args} />
<Footer.Actions actions={args.actions} copyright={args.copyright} />
</Footer>
<Provider store={store}>
<Footer>
<Footer.SubFooter {...args} />
<Footer.Header>{args.header}</Footer.Header>
<Footer.SitesButton {...args} />
<Footer.Social {...args} />
<Footer.Actions actions={args.actions} copyright={args.copyright} />
</Footer>
</Provider>
);

export const Default = Template.bind({});
Expand Down

0 comments on commit b72d24f

Please sign in to comment.