Skip to content

Commit

Permalink
feat: add default give thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Nov 14, 2021
1 parent 99a23b2 commit 5791004
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file added public/img/default-thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/components/organs/StudyListElement.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ function StudyListElementComponent({ study }: StudyListElementComponentProps) {
<StudyInfoComponent study={study} />
</S.ContentsWrapper>
<S.ImageWrapper>
<Image src={study.img} alt={study.title} height={100} />
<Image
src={study.img || "/img/default-thumbnail.png"}
alt={study.title}
height={100}
/>
</S.ImageWrapper>
</S.Container>
</a>
Expand Down

0 comments on commit 5791004

Please sign in to comment.