fix: handled workspaceSlug and projectId in issue voting component (#4503)

This commit is contained in:
guru_sainath 2024-05-17 17:51:14 +05:30 committed by GitHub
parent a150a9d268
commit 564625ee22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -17,7 +17,7 @@ export const IssueReactions: React.FC = () => {
{canVote && (
<>
<div className="flex items-center gap-2">
<IssueVotes />
<IssueVotes workspaceSlug={workspaceSlug} projectId={projectId} />
</div>
<div className="h-8 w-0.5 bg-custom-background-200" />
</>

View File

@ -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<TIssueVotes> = observer((props) => {
const router = useRouter();
const pathName = usePathname();
const searchParams = useSearchParams();