refactor: improve news and email handling, style, folder structure (#16)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
export const topNews = 'https://hacker-news.firebaseio.com/v0/topstories.json';
|
||||
export const singleNews = (id: number) =>
|
||||
`https://hacker-news.firebaseio.com/v0/item/${id}.json`;
|
||||
|
||||
export function singleNews(id: number) {
|
||||
return `https://hacker-news.firebaseio.com/v0/item/${id}.json`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user