diff --git a/components/OrganizedContent.tsx b/components/OrganizedContent.tsx index bfffb466..7a0e8f1a 100644 --- a/components/OrganizedContent.tsx +++ b/components/OrganizedContent.tsx @@ -35,23 +35,20 @@ export const OrganizedContent: React.FC = ({ }) => { const isReadAll = headings[currentIndex].name === "Read All"; const isMobile = false; + const readAllContent = headings + .filter((heading: { name: string }) => heading.name !== "Read All") + .map((heading) => ( +
+

{heading.name}

+ {heading.content} +
+ )); if (isMobile) { return (
{isReadAll ? ( -
- {headings - .filter( - (heading: { name: string }) => heading.name !== "Read All" - ) - .map((heading) => ( -
-

{heading.name}

- {heading.content} -
- ))} -
+
{readAllContent}
) : (

{headings[currentIndex].name} @@ -67,18 +64,7 @@ export const OrganizedContent: React.FC = ({