forked from github/plane
fix: handled workspaceSlug and projectId in issue voting component (#4503)
This commit is contained in:
parent
a150a9d268
commit
564625ee22
@ -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" />
|
||||
</>
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user