diff --git a/web/components/news-feed.tsx b/web/components/news-feed.tsx index 51901db81..84a5b90bb 100644 --- a/web/components/news-feed.tsx +++ b/web/components/news-feed.tsx @@ -1,11 +1,12 @@ /* eslint-disable camelcase */ /* eslint-disable react/no-danger */ import React, { useState, useEffect } from 'react'; -import { Typography, Skeleton } from 'antd'; +import { Collapse, Typography, Skeleton } from 'antd'; import format from 'date-fns/format'; import { fetchExternalData } from '../utils/apis'; +const { Panel } = Collapse; const { Title, Link } = Typography; const OWNCAST_FEED_URL = 'https://owncast.online/news/index.json'; @@ -23,13 +24,12 @@ function ArticleItem({ title, url, content_html: content, date_published: date } const dateString = format(dateObject, 'MMM dd, yyyy, HH:mm'); return (
-

{dateString}

- - <Link href={`${OWNCAST_BASE_URL}${url}`} target="_blank" rel="noopener noreferrer"> - {title} - </Link> - -
+ + +

{dateString} (Link)

+
+ +
); }