mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
98b1a078de
* fix: project layout added and theme fixes * feat: input color picker component added to ui package * fix: layout fixes * fix: conflicts and build issues resolved * fix: layout headers fixes
37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import { useRouter } from "next/router";
|
|
import useSWR from "swr";
|
|
// mobx
|
|
import { useMobxStore } from "lib/mobx/store-provider";
|
|
// components
|
|
import { ProjectLayoutRoot } from "components/issues";
|
|
import { ProjectIssuesHeader } from "components/headers";
|
|
// types
|
|
import type { NextPage } from "next";
|
|
// layouts
|
|
import { AppLayout } from "layouts/app-layout";
|
|
|
|
const ProjectIssues: NextPage = () => {
|
|
const router = useRouter();
|
|
const { workspaceSlug, projectId } = router.query;
|
|
|
|
const { issueFilter: issueFilterStore } = useMobxStore();
|
|
|
|
// TODO: update the fetch keys
|
|
useSWR(
|
|
workspaceSlug && projectId ? "REVALIDATE_USER_PROJECT_FILTERS" : null,
|
|
workspaceSlug && projectId
|
|
? () => issueFilterStore.fetchUserProjectFilters(workspaceSlug.toString(), projectId.toString())
|
|
: null
|
|
);
|
|
|
|
return (
|
|
<AppLayout header={<ProjectIssuesHeader />} withProjectWrapper>
|
|
<div className="h-full w-full flex flex-col">
|
|
<ProjectLayoutRoot />
|
|
</div>
|
|
</AppLayout>
|
|
);
|
|
};
|
|
|
|
export default ProjectIssues;
|