Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
feat: display avatars (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dharmik48 authored Jul 9, 2022
1 parent f620082 commit 0562825
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Good First Issue Finder helps new open source contributors pave their path into the world of open source through good first issues.

![eddiehub issue finder](https://user-images.githubusercontent.com/64529217/177002832-d17febfc-40cc-4077-a1f5-a4e1ed78d9d3.png)
![eddiehub issue finder](https://user-images.githubusercontent.com/64529217/177034601-fe8dffce-cfac-4f61-889b-e3fe1ab7497d.png)

<!-- (Can be only done after merged 😅)
## Example using Gitpod, ephemeral dev environment in the cloud (free)
Expand Down
1 change: 1 addition & 0 deletions src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/// <reference types="@sveltejs/kit" />

export declare type Owner = {
avatarUrl: string;
login: string;
};

Expand Down
10 changes: 2 additions & 8 deletions src/lib/components/issue-card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@
<div class="flex items-center justify-between">
<div class="flex min-w-0 items-center">
<img
class="mr-4 object-contain dark:hidden"
src="/images/githubmark-light.svg"
width="32"
alt="github"
/>
<img
class="mr-4 hidden object-contain dark:block"
src="/images/githubmark-dark.svg"
class="mr-4 rounded-full object-contain"
src={issue.repository.owner.avatarUrl}
width="32"
alt="github"
/>
Expand Down
1 change: 1 addition & 0 deletions src/routes/api/get-issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const post: RequestHandler = async ({ request }) => {
id
}
owner {
avatarUrl
login
}
}
Expand Down

0 comments on commit 0562825

Please sign in to comment.