diff --git a/web/src/app/page.tsx b/web/src/app/page.tsx index f9856b1..471b410 100644 --- a/web/src/app/page.tsx +++ b/web/src/app/page.tsx @@ -85,7 +85,7 @@ export default async function Home() { - + ); } diff --git a/web/src/components/news/NewsList.tsx b/web/src/components/news/NewsList.tsx index a5c03e9..cd016f4 100644 --- a/web/src/components/news/NewsList.tsx +++ b/web/src/components/news/NewsList.tsx @@ -14,7 +14,7 @@ export const NewsList = ({ heading?: string; featured?: boolean; }) => { - const [limit, setLimit] = useState(17); + const [limit, setLimit] = useState(featured ? 4 : 17); function increaseLimit() { setLimit(limit + 16); } @@ -29,7 +29,7 @@ export const NewsList = ({ ))} - {limit && news.length > limit && ( + {!featured && limit && news.length > limit && (