mirror of
https://github.com/makeplane/plane.git
synced 2025-12-25 08:09:33 +01:00
* 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>
22 lines
577 B
TypeScript
22 lines
577 B
TypeScript
import { FC } from "react";
|
|
import { observer } from "mobx-react";
|
|
// layouts
|
|
import { ProjectAuthWrapper as CoreProjectAuthWrapper } from "@/layouts/auth-layout";
|
|
|
|
export type IProjectAuthWrapper = {
|
|
workspaceSlug: string;
|
|
projectId: string;
|
|
children: React.ReactNode;
|
|
};
|
|
|
|
export const ProjectAuthWrapper: FC<IProjectAuthWrapper> = observer((props) => {
|
|
// props
|
|
const { workspaceSlug, projectId, children } = props;
|
|
|
|
return (
|
|
<CoreProjectAuthWrapper workspaceSlug={workspaceSlug} projectId={projectId}>
|
|
{children}
|
|
</CoreProjectAuthWrapper>
|
|
);
|
|
});
|