diff --git a/web/html/src/build/plugins/generate-stories-plugin.js b/web/html/src/build/plugins/generate-stories-plugin.js index fb36f2532d8a..cb4a0e9193a5 100644 --- a/web/html/src/build/plugins/generate-stories-plugin.js +++ b/web/html/src/build/plugins/generate-stories-plugin.js @@ -73,7 +73,7 @@ module.exports = class GenerateStoriesPlugin { }; const storyTemplate = (filePath, safeName, groupName) => -` + ` import ${safeName}_component from "${filePath}"; import ${safeName}_raw from "${filePath}?raw"; @@ -87,7 +87,7 @@ export const ${safeName} = { `; const fileTemplate = (content) => -` + ` /** * NB! This is a generated file! * Any changes you make here will be lost. diff --git a/web/html/src/manager/storybook/storybook.tsx b/web/html/src/manager/storybook/storybook.tsx index a11d3671c195..434405890504 100644 --- a/web/html/src/manager/storybook/storybook.tsx +++ b/web/html/src/manager/storybook/storybook.tsx @@ -89,22 +89,23 @@ export const Storybook = () => { {stories.map((group) => (
- {normalize(group.title) === activeTabHash && group.stories?.map((item) => ( - -

- {item.title} -

-
-
{item.component ? : null}
- {showCode ? ( -
-                    {item.raw}
-                  
- ) : null} -
-
-
- ))} + {normalize(group.title) === activeTabHash && + group.stories?.map((item) => ( + +

+ {item.title} +

+
+
{item.component ? : null}
+ {showCode ? ( +
+                      {item.raw}
+                    
+ ) : null} +
+
+
+ ))}
))} diff --git a/web/html/src/object.d.ts b/web/html/src/object.d.ts index 4ee9dac85b41..1608d5518e1f 100644 --- a/web/html/src/object.d.ts +++ b/web/html/src/object.d.ts @@ -6,8 +6,8 @@ interface ObjectConstructor { * @param keySelector A callback which will be invoked for each item in items. */ groupBy( - items: Iterable, - keySelector: (item: T, index: number) => K, + items: Iterable, + keySelector: (item: T, index: number) => K ): Partial>; } @@ -17,8 +17,5 @@ interface MapConstructor { * @param items An iterable. * @param keySelector A callback which will be invoked for each item in items. */ - groupBy( - items: Iterable, - keySelector: (item: T, index: number) => K, - ): Map; + groupBy(items: Iterable, keySelector: (item: T, index: number) => K): Map; }