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 && (
|
{canVote && (
|
||||||
<>
|
<>
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<IssueVotes />
|
<IssueVotes workspaceSlug={workspaceSlug} projectId={projectId} />
|
||||||
</div>
|
</div>
|
||||||
<div className="h-8 w-0.5 bg-custom-background-200" />
|
<div className="h-8 w-0.5 bg-custom-background-200" />
|
||||||
</>
|
</>
|
||||||
|
@ -9,7 +9,12 @@ import { queryParamGenerator } from "@/helpers/query-param-generator";
|
|||||||
// hooks
|
// hooks
|
||||||
import { useIssueDetails, useUser } from "@/hooks/store";
|
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 router = useRouter();
|
||||||
const pathName = usePathname();
|
const pathName = usePathname();
|
||||||
const searchParams = useSearchParams();
|
const searchParams = useSearchParams();
|
||||||
|
Loading…
Reference in New Issue
Block a user