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

Commit

Permalink
remove vote files
Browse files Browse the repository at this point in the history
  • Loading branch information
bdougie committed Apr 1, 2024
1 parent 811b5fb commit bc1cc46
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 185 deletions.
14 changes: 2 additions & 12 deletions src/components/RepoList.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
import { emojify } from "node-emoji";
import { useEffect, useState } from "react";
import { FaArrowAltCircleUp, FaDotCircle, FaStar } from "react-icons/fa";
import { useEffect } from "react";
import { FaDotCircle, FaStar } from "react-icons/fa";
import humanizeNumber from "../lib/humanizeNumber";
import { getAvatarLink, getRepoLink } from "../lib/github";
import StackedAvatar from "./StackedAvatar";
import useVotedRepos from "../hooks/useVotedRepos";
import { RiCheckboxCircleFill } from "react-icons/ri";
import cx from "classnames";
import useContributions from "../hooks/useContributions";

export declare interface RepoListProps {
data: DbRepo;
}

const RepoList = ({ data }: RepoListProps): JSX.Element => {
const { votedReposIds, checkVoted, voteHandler } = useVotedRepos();
const [isVoted, setIsVoted] = useState(false);

const {
id,
name,
Expand All @@ -31,11 +26,6 @@ const RepoList = ({ data }: RepoListProps): JSX.Element => {
// {full_name} consists of `{owner}/{repo}`, so this link is actually `repos/{owner}/{repo}/contributions`
const { data: contributions } = useContributions(full_name);

useEffect(() => {
setIsVoted(checkVoted(id));
}, [votedReposIds]);

const repo_id = parseInt(`${id}`);
const owner = full_name.replace(`/${String(name)}`, "").trim();

return (
Expand Down
50 changes: 0 additions & 50 deletions src/components/VotedRepoListWrap.tsx

This file was deleted.

58 changes: 0 additions & 58 deletions src/hooks/useVotedRepos.ts

This file was deleted.

44 changes: 0 additions & 44 deletions src/hooks/useVotedRepositoriesList.ts

This file was deleted.

21 changes: 0 additions & 21 deletions src/lib/handleVoteUpdateByRepo.ts

This file was deleted.

0 comments on commit bc1cc46

Please sign in to comment.