2023-11-02 18:27:44 +00:00
|
|
|
import { ReactElement } from "react";
|
2024-02-20 08:06:38 +00:00
|
|
|
import { observer } from "mobx-react";
|
2022-12-20 10:35:21 +00:00
|
|
|
// layouts
|
|
|
|
// components
|
2024-02-20 08:06:38 +00:00
|
|
|
import { PageHead } from "components/core";
|
2023-10-18 13:47:02 +00:00
|
|
|
import { ProjectSettingHeader } from "components/headers";
|
2023-11-01 08:12:51 +00:00
|
|
|
import { ProjectMemberList, ProjectSettingsMemberDefaults } from "components/project";
|
2023-02-08 04:43:07 +00:00
|
|
|
// types
|
2024-02-20 08:06:38 +00:00
|
|
|
// hooks
|
|
|
|
import { useProject } from "hooks/store";
|
2024-03-06 13:09:14 +00:00
|
|
|
import { AppLayout } from "layouts/app-layout";
|
|
|
|
import { ProjectSettingLayout } from "layouts/settings-layout";
|
|
|
|
import { NextPageWithLayout } from "lib/types";
|
2022-12-20 10:35:21 +00:00
|
|
|
|
2024-02-20 08:06:38 +00:00
|
|
|
const MembersSettingsPage: NextPageWithLayout = observer(() => {
|
|
|
|
// store
|
|
|
|
const { currentProjectDetails } = useProject();
|
|
|
|
// derived values
|
|
|
|
const pageTitle = currentProjectDetails?.name ? `${currentProjectDetails?.name} - Members` : undefined;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<PageHead title={pageTitle} />
|
|
|
|
<section className={`w-full overflow-y-auto py-8 pr-9`}>
|
|
|
|
<ProjectSettingsMemberDefaults />
|
|
|
|
<ProjectMemberList />
|
|
|
|
</section>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
});
|
2022-12-20 10:35:21 +00:00
|
|
|
|
2023-11-02 18:27:44 +00:00
|
|
|
MembersSettingsPage.getLayout = function getLayout(page: ReactElement) {
|
|
|
|
return (
|
|
|
|
<AppLayout header={<ProjectSettingHeader title="Members Settings" />} withProjectWrapper>
|
|
|
|
<ProjectSettingLayout>{page}</ProjectSettingLayout>
|
|
|
|
</AppLayout>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default MembersSettingsPage;
|