Skip to content

Commit

Permalink
Merge pull request #47 from rubyforgood/deploy
Browse files Browse the repository at this point in the history
Deploy
  • Loading branch information
seanmarcia authored Nov 2, 2023
2 parents f5b5e80 + e695edd commit 1311704
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
15 changes: 10 additions & 5 deletions components/IssueList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ type IssueListProps = {

export const IssuesList = ({ issues }: IssueListProps) => {
return (

<ol className="repo-item__issue-list">
{issues.map((issue) => (
<IssueItem issue={issue} key={issue.id} />
))}
{issues.length > 0 ? (
issues.map((issue) => <IssueItem issue={issue} key={issue.id} />)
) : (
<li>
This project does not appear to have any issues marked Help Wanted or Good First Issue. If
this project speaks to you, consider seeing if there are other ways to help contribute!
You can find more information on the project&apos;s GitHub page. It is also possible that they
are not using issue labels or GitHub issues to track their work.
</li>
)}
</ol>

);
};
5 changes: 1 addition & 4 deletions components/RepositoryItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ export const RepositoryItem = ({ repository }: RepositoryItemProps) => {

return (
<div className="repo-item">
<div
id={`repo-${repository.id}`}
onClick={() => setIsIssueOpen(!isIssueOpen)}
>
<div id={`repo-${repository.id}`} onClick={() => setIsIssueOpen(!isIssueOpen)}>
<div>
<RepositoryItemTopBar
isIssueOpen={isIssueOpen}
Expand Down
2 changes: 1 addition & 1 deletion generated.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "first-issue",
"name": "for-good-first-issue",
"version": "1.0.0",
"scripts": {
"dev": "next dev",
Expand Down

0 comments on commit 1311704

Please sign in to comment.