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 fc3d732
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 164 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
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Home() {
<title>Happy Commits | Make your next open-source contribution matter.</title>
</Head>
<Navbar />
<HeroContainer filter={filter} setFilter={setFilter} repositories={repositories} />
<HeroContainer filter={filter} setFilter={setFilter} />
<RepositoryList repositories={repositories} filter={filter} />
</>
);
Expand Down
50 changes: 0 additions & 50 deletions pages/language/[tag].tsx

This file was deleted.

42 changes: 0 additions & 42 deletions pages/search/[tag].tsx

This file was deleted.

52 changes: 0 additions & 52 deletions pages/topic/[tag].tsx

This file was deleted.

0 comments on commit fc3d732

Please sign in to comment.