Skip to content

Commit

Permalink
Fix React complaining
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Apr 5, 2023
1 parent 12aee1d commit 851d9ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const Context: StoryObj<typeof Component> = {
</TestContext.Provider>
),
],
render: (args, context) => {
render: function Render(args, context) {
const arg = useContext(TestContext);
if (!arg) throw new Error('Arg not set');
return <p>Story</p>;
Expand Down

0 comments on commit 851d9ed

Please sign in to comment.