From 564625ee223ce2a18f69c1aea09fad6766f2bf2f Mon Sep 17 00:00:00 2001 From: guru_sainath Date: Fri, 17 May 2024 17:51:14 +0530 Subject: [PATCH] fix: handled workspaceSlug and projectId in issue voting component (#4503) --- space/components/issues/peek-overview/issue-reaction.tsx | 2 +- .../issues/peek-overview/issue-vote-reactions.tsx | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/space/components/issues/peek-overview/issue-reaction.tsx b/space/components/issues/peek-overview/issue-reaction.tsx index ae569a52e..28090d36a 100644 --- a/space/components/issues/peek-overview/issue-reaction.tsx +++ b/space/components/issues/peek-overview/issue-reaction.tsx @@ -17,7 +17,7 @@ export const IssueReactions: React.FC = () => { {canVote && ( <>
- +
diff --git a/space/components/issues/peek-overview/issue-vote-reactions.tsx b/space/components/issues/peek-overview/issue-vote-reactions.tsx index 4cdce0b3f..073938daa 100644 --- a/space/components/issues/peek-overview/issue-vote-reactions.tsx +++ b/space/components/issues/peek-overview/issue-vote-reactions.tsx @@ -9,7 +9,12 @@ import { queryParamGenerator } from "@/helpers/query-param-generator"; // hooks import { useIssueDetails, useUser } from "@/hooks/store"; -export const IssueVotes: React.FC = observer((props: any) => { +type TIssueVotes = { + workspaceSlug: string; + projectId: string; +}; + +export const IssueVotes: React.FC = observer((props) => { const router = useRouter(); const pathName = usePathname(); const searchParams = useSearchParams();