diff --git a/components/ScriptBrowser.tsx b/components/ScriptBrowser.tsx index b9979eb..938299f 100644 --- a/components/ScriptBrowser.tsx +++ b/components/ScriptBrowser.tsx @@ -139,7 +139,7 @@ const ScriptBrowser = ({

Categories

-

+

{links.reduce( (acc, category) => acc + category.expand.items.length, 0, @@ -191,121 +191,122 @@ const ScriptBrowser = ({ )}

- - {filteredLinks.map((category) => ( - - + {filteredLinks.map((category) => ( + -
- - {category.catagoryName}{" "} - - - {category.expand.items.length} - -
{" "} -
- - {category.expand.items - .filter((script) => - script.title.toLowerCase().includes(searchTerm.toLowerCase()), - ) - .map((script, index) => ( -

- handleSelected(script.title)} - ref={(el) => { - linkRefs.current[script.title] = el; - }} - > - {showLogos && script.logo && ( - {script.title} - )} - - {script.title} - {script.isMostViewed && ( - - )} - - +

+ {category.catagoryName} + + {category.expand.items.length} + +
{" "} + + + {category.expand.items + .filter((script) => + script.title + .toLowerCase() + .includes(searchTerm.toLowerCase()), + ) + .map((script, index) => ( +

+ handleSelected(script.title)} + ref={(el) => { + linkRefs.current[script.title] = el; + }} > - {script.item_type} - - -

- ))} -
-
- ))} -
-
-

- + {showLogos && script.logo && ( + {script.title} + )} + + {script.title} + {script.isMostViewed && ( + + )} + + + {script.item_type} + + +

+ ))} + + + ))} + +
+

+

- + ); };