Skip to content

Commit

Permalink
Better description
Browse files Browse the repository at this point in the history
  • Loading branch information
longtv2222 committed Nov 20, 2022
1 parent 5c1b753 commit b8383e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Interest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down
6 changes: 4 additions & 2 deletions src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ export const Home: React.FC = () => {
<HeaderFooterLayout>
{user ? (
<>
<Typography variant="subtitle1">
Welcome to MatchEd, {user.first_name}
<Typography variant="h6" sx={{
marginY: "20px"
}}>
Belows are your latest news for your interests, {user.first_name}
</Typography>
<News />
</>
Expand Down

0 comments on commit b8383e5

Please sign in to comment.