mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
05de4d83f3
* chore: header refactor. * fix: core imports * chore: refactor profile activity header and fix all other header imports. * fix: import fixes * chore: header refactor. * fix: app dir header reimplementation * fix: removing parllel headers * fix: adding route groups to handle pages * fix: disabling sentry for temp * chore: update default exports in layouts & headers for consistency. * fix: bugfixes * fix: build errors --------- Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
44 lines
1.4 KiB
TypeScript
44 lines
1.4 KiB
TypeScript
"use client";
|
|
|
|
import { observer } from "mobx-react";
|
|
// components
|
|
import { PageHead } from "@/components/core";
|
|
import { AllIssueLayoutRoot } from "@/components/issues";
|
|
import { GlobalViewsHeader } from "@/components/workspace";
|
|
// constants
|
|
import { DEFAULT_GLOBAL_VIEWS_LIST } from "@/constants/workspace";
|
|
// hooks
|
|
import { useGlobalView, useWorkspace } from "@/hooks/store";
|
|
|
|
const GlobalViewIssuesPage = observer(() => {
|
|
// router
|
|
//const { globalViewId } = useParams();
|
|
const globalViewId = "assigned";
|
|
// store hooks
|
|
const { currentWorkspace } = useWorkspace();
|
|
const { getViewDetailsById } = useGlobalView();
|
|
// derived values
|
|
const globalViewDetails = globalViewId ? getViewDetailsById(globalViewId.toString()) : undefined;
|
|
const defaultView = DEFAULT_GLOBAL_VIEWS_LIST.find((view) => view.key === globalViewId);
|
|
const pageTitle =
|
|
currentWorkspace?.name && defaultView?.label
|
|
? `${currentWorkspace?.name} - ${defaultView?.label}`
|
|
: currentWorkspace?.name && globalViewDetails?.name
|
|
? `${currentWorkspace?.name} - ${globalViewDetails?.name}`
|
|
: undefined;
|
|
|
|
return (
|
|
<>
|
|
<PageHead title={pageTitle} />
|
|
<div className="h-full overflow-hidden bg-custom-background-100">
|
|
<div className="flex h-full w-full flex-col border-b border-custom-border-300">
|
|
<GlobalViewsHeader />
|
|
<AllIssueLayoutRoot />
|
|
</div>
|
|
</div>
|
|
</>
|
|
);
|
|
});
|
|
|
|
export default GlobalViewIssuesPage;
|