mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
26 lines
714 B
TypeScript
26 lines
714 B
TypeScript
import React from "react";
|
|
import { observer } from "mobx-react-lite";
|
|
import { useRouter } from "next/router";
|
|
// store
|
|
import { EIssuesStoreType } from "@/constants/issue";
|
|
// constants
|
|
// types
|
|
import { ProjectIssueQuickActions } from "../../quick-action-dropdowns";
|
|
// components
|
|
import { BaseListRoot } from "../base-list-root";
|
|
|
|
export const ProjectViewListLayout: React.FC = observer(() => {
|
|
const router = useRouter();
|
|
const { workspaceSlug, projectId, viewId } = router.query;
|
|
|
|
if (!workspaceSlug || !projectId) return null;
|
|
|
|
return (
|
|
<BaseListRoot
|
|
QuickActions={ProjectIssueQuickActions}
|
|
storeType={EIssuesStoreType.PROJECT_VIEW}
|
|
viewId={viewId?.toString()}
|
|
/>
|
|
);
|
|
});
|