[WEB-1100] fix: bug fixes and enhancement (#4318)

* fix: inbox issue description

* chore: outline heading removed from page toc

* chore: label setting page ui improvement

* fix: update issue modal description resetting

* chore: project page head title improvement
This commit is contained in:
Anmol Singh Bhatia 2024-04-30 19:39:50 +05:30 committed by GitHub
parent d2717a221c
commit d1978be778
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 24 additions and 21 deletions

View file

@ -4,10 +4,11 @@ import { useRouter } from "next/router";
// types
import { TPageNavigationTabs } from "@plane/types";
// components
import { PageHead } from "@/components/core";
import { PagesHeader } from "@/components/headers";
import { PagesListRoot, PagesListView } from "@/components/pages";
// hooks
import { useApplication } from "@/hooks/store";
import { useApplication, useProject } from "@/hooks/store";
// layouts
import { AppLayout } from "@/layouts/app-layout";
// lib
@ -21,6 +22,10 @@ const ProjectPagesPage: NextPageWithLayout = observer(() => {
const {
router: { workspaceSlug, projectId },
} = useApplication();
const { getProjectById } = useProject();
// derived values
const project = projectId ? getProjectById(projectId.toString()) : undefined;
const pageTitle = project?.name ? `${project?.name} - Pages` : undefined;
const currentPageType = (): TPageNavigationTabs => {
const pageType = type?.toString();
@ -31,17 +36,20 @@ const ProjectPagesPage: NextPageWithLayout = observer(() => {
if (!workspaceSlug || !projectId) return <></>;
return (
<PagesListView
workspaceSlug={workspaceSlug.toString()}
projectId={projectId.toString()}
pageType={currentPageType()}
>
<PagesListRoot
pageType={currentPageType()}
<>
<PageHead title={pageTitle} />
<PagesListView
workspaceSlug={workspaceSlug.toString()}
projectId={projectId.toString()}
/>
</PagesListView>
pageType={currentPageType()}
>
<PagesListRoot
pageType={currentPageType()}
workspaceSlug={workspaceSlug.toString()}
projectId={projectId.toString()}
/>
</PagesListView>
</>
);
});