mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
[WEB-581] chore: project states setting page improvement (#3864)
* chore: project states setting page improvement * chore: code refactor * chore: observer added in project state setting page
This commit is contained in:
parent
dbdd14493b
commit
7b76df6868
@ -1,21 +1,34 @@
|
|||||||
import { ReactElement } from "react";
|
import { ReactElement } from "react";
|
||||||
|
import { observer } from "mobx-react";
|
||||||
// layout
|
// layout
|
||||||
import { AppLayout } from "layouts/app-layout";
|
import { AppLayout } from "layouts/app-layout";
|
||||||
import { ProjectSettingLayout } from "layouts/settings-layout";
|
import { ProjectSettingLayout } from "layouts/settings-layout";
|
||||||
// components
|
// components
|
||||||
import { ProjectSettingStateList } from "components/states";
|
import { ProjectSettingStateList } from "components/states";
|
||||||
import { ProjectSettingHeader } from "components/headers";
|
import { ProjectSettingHeader } from "components/headers";
|
||||||
|
import { PageHead } from "components/core";
|
||||||
// types
|
// types
|
||||||
import { NextPageWithLayout } from "lib/types";
|
import { NextPageWithLayout } from "lib/types";
|
||||||
|
// hook
|
||||||
|
import { useProject } from "hooks/store";
|
||||||
|
|
||||||
const StatesSettingsPage: NextPageWithLayout = () => (
|
const StatesSettingsPage: NextPageWithLayout = observer(() => {
|
||||||
<div className="w-full gap-10 overflow-y-auto py-8 pr-9">
|
// store
|
||||||
<div className="flex items-center border-b border-custom-border-100 py-3.5">
|
const { currentProjectDetails } = useProject();
|
||||||
<h3 className="text-xl font-medium">States</h3>
|
// derived values
|
||||||
</div>
|
const pageTitle = currentProjectDetails?.name ? `${currentProjectDetails?.name} - States` : undefined;
|
||||||
<ProjectSettingStateList />
|
return (
|
||||||
</div>
|
<>
|
||||||
);
|
<PageHead title={pageTitle} />
|
||||||
|
<div className="w-full gap-10 overflow-y-auto py-8 pr-9">
|
||||||
|
<div className="flex items-center border-b border-custom-border-100 py-3.5">
|
||||||
|
<h3 className="text-xl font-medium">States</h3>
|
||||||
|
</div>
|
||||||
|
<ProjectSettingStateList />
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
StatesSettingsPage.getLayout = function getLayout(page: ReactElement) {
|
StatesSettingsPage.getLayout = function getLayout(page: ReactElement) {
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user