Connect, collaborate, and grow with a community of TypeScript developers
rip upvote-button
Nikita Krupin8880916cc963
diff --git a/src/components/challenge/upvote-button.tsx b/src/components/challenge/upvote-button.tsxdeleted file mode 100644index 30e20220..00000000--- a/src/components/challenge/upvote-button.tsx+++ /dev/null@@ -1,22 +0,0 @@-'use client';--type Props = {- upvote: number;- incrementUpvote: (challengeId: number) => Promise<void>;- challengeId: number;- setUpvote: (upvote: number) => void;-};--export default function UpvoteButton({ incrementUpvote, challengeId, upvote, setUpvote }: Props) {- return (- <button- className="rounded-lg bg-slate-700 p-4 text-white"- onClick={async () => {- const x = await incrementUpvote(challengeId, userId);- setUpvote(x);- }}- >- :arrow_up: {upvote}- </button>- );-}