Skip to content

Commit

Permalink
Merge pull request #38 from 2077-Collective/fix/article-thumb-type
Browse files Browse the repository at this point in the history
fix: article thumb type
  • Loading branch information
iankressin authored Aug 21, 2024
2 parents 2cd992e + deaeeb5 commit 0bc2aef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion research/src/components/ArticleList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{#each filteredArticles as article (article.id)}
<li class="flex flex-col gap-y-1">
<a class="bg-transparent" href={`/${article.slug}`}>
<img src={article.thumb.url} alt="" width="720" height="480" />
<img src={article.thumb} alt="" width="720" height="480" />
<ul class="flex py-2">
{#each article.categories as category}
<li>
Expand Down
4 changes: 1 addition & 3 deletions research/src/types/article.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ export interface Article {
views: string
summary: string
categories: Category[]
thumb: {
url: string
}
thumb: string
slug: string
}

0 comments on commit 0bc2aef

Please sign in to comment.