Skip to content

Commit

Permalink
fix legend categories story
Browse files Browse the repository at this point in the history
  • Loading branch information
juandjara committed Mar 18, 2024
1 parent d4ebc64 commit e9089a0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import LegendCategories from '../../../../src/widgets/legend/legend-types/LegendCategories';
import { IntlProvider } from 'react-intl';

const DEFAULT_LEGEND = {
legend: {
Expand All @@ -26,7 +27,11 @@ const options = {
export default options;

const Template = (args) => {
return <LegendCategories {...args} />;
return (
<IntlProvider locale='en'>
<LegendCategories {...args} />
</IntlProvider>
);
};

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

0 comments on commit e9089a0

Please sign in to comment.