diff --git a/src/components/Interest.tsx b/src/components/Interest.tsx index 13a77d4..c2e390e 100644 --- a/src/components/Interest.tsx +++ b/src/components/Interest.tsx @@ -17,7 +17,7 @@ export const Interest: React.FC<{ name: string }> = ({ name }) => { React.useEffect(() => { fetch( - `https://newsapi.org/v2/everything?q=${name}&sortBy=popularity&apiKey=e787a6bc56e648bd805e5dac153a102e` + `https://newsapi.org/v2/everything?q=${name}&sortBy=popularity&apiKey=72a551cf0da246c7abde552db5f33b85` ) .then((res) => res.json()) .then((data) => setArticles(data.articles.slice(0, 5))); diff --git a/src/pages/Home/Home.tsx b/src/pages/Home/Home.tsx index d6b4f01..267a44f 100644 --- a/src/pages/Home/Home.tsx +++ b/src/pages/Home/Home.tsx @@ -20,8 +20,10 @@ export const Home: React.FC = () => { {user ? ( <> - - Welcome to MatchEd, {user.first_name} + + Belows are your latest news for your interests, {user.first_name}