From 2ca29eed30b53371481fa6acb2bdf6a6ce586062 Mon Sep 17 00:00:00 2001 From: Patrick Gidich Date: Fri, 12 Apr 2024 09:34:12 -0400 Subject: [PATCH 1/2] Update ReactComponentStoryBookGenerator.ts Fixed typo --- .../react-agent/generative/ReactComponentStoryBookGenerator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/main/react-agent/generative/ReactComponentStoryBookGenerator.ts b/backend/main/react-agent/generative/ReactComponentStoryBookGenerator.ts index a41925c..d1b3ea7 100644 --- a/backend/main/react-agent/generative/ReactComponentStoryBookGenerator.ts +++ b/backend/main/react-agent/generative/ReactComponentStoryBookGenerator.ts @@ -128,7 +128,7 @@ Make sure it covers all the use cases and states. Instructions: Make sure it's a working code, don't assume that I'm going to change or implement anything. Assume I have storybook setup in my project. -The component is in the same folder as your code, and is exported as default, use this synatx to import: import ComponentName from './ComponentName'; +The component is in the same folder as your code, and is exported as default, use this syntax to import: import CotaonentName from './ComponentName'; --- Return Type: return a React storybook file of the component, written in Typescript, using storybook. From c023dd920caad71608ad9a6d5a063962f7d53d3c Mon Sep 17 00:00:00 2001 From: Patrick Gidich Date: Fri, 12 Apr 2024 09:37:44 -0400 Subject: [PATCH 2/2] Update ReactComponentStoryBookGenerator.ts fixing typo --- .../react-agent/generative/ReactComponentStoryBookGenerator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/main/react-agent/generative/ReactComponentStoryBookGenerator.ts b/backend/main/react-agent/generative/ReactComponentStoryBookGenerator.ts index d1b3ea7..e719cc4 100644 --- a/backend/main/react-agent/generative/ReactComponentStoryBookGenerator.ts +++ b/backend/main/react-agent/generative/ReactComponentStoryBookGenerator.ts @@ -128,7 +128,7 @@ Make sure it covers all the use cases and states. Instructions: Make sure it's a working code, don't assume that I'm going to change or implement anything. Assume I have storybook setup in my project. -The component is in the same folder as your code, and is exported as default, use this syntax to import: import CotaonentName from './ComponentName'; +The component is in the same folder as your code, and is exported as default, use this syntax to import: import ComponentName from './ComponentName'; --- Return Type: return a React storybook file of the component, written in Typescript, using storybook.