* feat: meta endpoint for issue * chore: add detail endpoint * chore: getIssueMetaFromURL and retrieveWithIdentifier endpoint added * chore: issue store updated * chore: move issue detail to new route and add redirection for old route * fix: issue details permission * fix: work item detail header * chore: generateWorkItemLink helper function added * chore: copyTextToClipboard helper function updated * chore: workItemLink updated * chore: workItemLink updated * chore: workItemLink updated * fix: issues navigation tab active status * fix: invalid workitem error state * chore: peek view parent issue redirection improvement * fix: issue detail endpoint to not return epics and intake issue * fix: workitem empty state redirection and header * fix: workitem empty state redirection and header * chore: code refactor * chore: project auth wrapper improvement --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
18 lines
528 B
TypeScript
18 lines
528 B
TypeScript
"use client";
|
|
|
|
import { ReactNode } from "react";
|
|
import { useParams } from "next/navigation";
|
|
// plane web layouts
|
|
import { ProjectAuthWrapper } from "@/plane-web/layouts/project-wrapper";
|
|
|
|
const ProjectDetailLayout = ({ children }: { children: ReactNode }) => {
|
|
// router
|
|
const { workspaceSlug, projectId } = useParams();
|
|
return (
|
|
<ProjectAuthWrapper workspaceSlug={workspaceSlug?.toString()} projectId={projectId?.toString()}>
|
|
{children}
|
|
</ProjectAuthWrapper>
|
|
);
|
|
};
|
|
|
|
export default ProjectDetailLayout;
|