Skip to content

Commit

Permalink
[Fix #193] Add intl to comment form story
Browse files Browse the repository at this point in the history
  • Loading branch information
LaChope committed Nov 8, 2022
1 parent d20c315 commit a069307
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/stories/CommentForm.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import { ComponentMeta, ComponentStory } from "@storybook/react";
import { ConfigurationContextProvider } from "../contexts/ConfigurationContext";

import CommentForm from "../components/comment/CommentForm";

Expand All @@ -12,7 +13,19 @@ const Template: ComponentStory<typeof CommentForm> = (
args,
{ globals: { locale } }
) => {
<CommentForm {...args} />;
return (
<>
<ConfigurationContextProvider
options={{
intl: {
locale: locale,
},
}}
>
<CommentForm {...args} />
</ConfigurationContextProvider>
</>
);
};

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

0 comments on commit a069307

Please sign in to comment.