Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmarcia committed Sep 23, 2023
1 parent a7b17b0 commit b426c35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
7 changes: 6 additions & 1 deletion components/HeroContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import { GitHubIcon } from "./GitHubIcon";
import { HappyCommitsInfo } from "./HappyCommitsInfo";
import { BinaryCode } from "./BinaryCode";

export const HeroContainer = ({filter, setFilter}) => {
type FilterProps = {
filter: string;
setFilter: (filter: string) => void;
};

export const HeroContainer = ({filter, setFilter}: FilterProps) => {
return (
<>
<div
Expand Down
17 changes: 0 additions & 17 deletions components/IssueItem.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
import { faComment } from "@fortawesome/free-regular-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";

import { Issue } from "../types";

type IssueItemProps = {
issue: Issue;
};

type IssueCommentNumProps = {
numIssues: number;
};

// const IssueCommentNum = ({ numIssues }: IssueCommentNumProps) => {
// return (
// <div className="flex flex-row items-center justify-end mt-1 w-10">
// <span className="mr-2 text-sm leading-snug">{numIssues}</span>
// <FontAwesomeIcon icon={faComment} />
// </div>
// );
// };

export const IssueItem = ({ issue }: IssueItemProps) => {
return (
<li key={issue.url} className="px-6 py-2 bg-white justify-start items-start gap-4 inline-flex">
Expand All @@ -35,7 +19,6 @@ export const IssueItem = ({ issue }: IssueItemProps) => {
>
{issue.title}
</a>
{/* {issue.comments_count > 0 && <IssueCommentNum numIssues={issue.comments_count} />} */}
</div>
</li>
);
Expand Down
2 changes: 1 addition & 1 deletion components/RepositoryMetadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const RepositoryMetadata = ({
</div>
<div className="px-2 py-1 bg-violet-50 rounded justify-center items-center gap-2 flex">
<div className="text-slate-700 text-[13px] font-normal font-['Source Sans Pro']">
SDG-1
{repositoryTopics && repositoryTopics.map(topic => topic.display).join(', ')}
</div>
</div>
</div>
Expand Down

0 comments on commit b426c35

Please sign in to comment.