updated managment index
This commit is contained in:
parent
734dc59e38
commit
c6b1a2b1e8
|
|
@ -0,0 +1,28 @@
|
||||||
|
'use server';
|
||||||
|
import React from "react";
|
||||||
|
import DashboardLayout from "@/components/layouts/DashboardLayout";
|
||||||
|
import { useDashboardPage } from "@/components/common/hooks/useDashboardPage";
|
||||||
|
|
||||||
|
async function EventAppendPage({
|
||||||
|
searchParams,
|
||||||
|
}: {
|
||||||
|
searchParams: Promise<{ [key: string]: string | undefined }>;
|
||||||
|
}) {
|
||||||
|
const {
|
||||||
|
activePage,
|
||||||
|
searchParamsInstance,
|
||||||
|
lang,
|
||||||
|
PageComponent,
|
||||||
|
} = await useDashboardPage({
|
||||||
|
pageUrl: "/append/event",
|
||||||
|
searchParams,
|
||||||
|
});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<DashboardLayout lang={lang} activePage={activePage}>
|
||||||
|
<PageComponent lang={lang} queryParams={searchParamsInstance} />
|
||||||
|
</DashboardLayout>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default EventAppendPage;
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
'use server';
|
||||||
|
import React from "react";
|
||||||
|
import DashboardLayout from "@/components/layouts/DashboardLayout";
|
||||||
|
import { useDashboardPage } from "@/components/common/hooks/useDashboardPage";
|
||||||
|
|
||||||
|
async function ServiceAppendPage({
|
||||||
|
searchParams,
|
||||||
|
}: {
|
||||||
|
searchParams: Promise<{ [key: string]: string | undefined }>;
|
||||||
|
}) {
|
||||||
|
const {
|
||||||
|
activePage,
|
||||||
|
searchParamsInstance,
|
||||||
|
lang,
|
||||||
|
PageComponent,
|
||||||
|
} = await useDashboardPage({
|
||||||
|
pageUrl: "/append/service",
|
||||||
|
searchParams,
|
||||||
|
});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<DashboardLayout lang={lang} activePage={activePage}>
|
||||||
|
<PageComponent lang={lang} queryParams={searchParamsInstance} />
|
||||||
|
</DashboardLayout>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ServiceAppendPage;
|
||||||
|
|
@ -3,7 +3,7 @@ import React from "react";
|
||||||
import DashboardLayout from "@/components/layouts/DashboardLayout";
|
import DashboardLayout from "@/components/layouts/DashboardLayout";
|
||||||
import { useDashboardPage } from "@/components/common/hooks/useDashboardPage";
|
import { useDashboardPage } from "@/components/common/hooks/useDashboardPage";
|
||||||
|
|
||||||
async function DashboardPage({
|
async function ApplicationPage({
|
||||||
searchParams,
|
searchParams,
|
||||||
}: {
|
}: {
|
||||||
searchParams: Promise<{ [key: string]: string | undefined }>;
|
searchParams: Promise<{ [key: string]: string | undefined }>;
|
||||||
|
|
@ -25,4 +25,4 @@ async function DashboardPage({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default DashboardPage;
|
export default ApplicationPage;
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ export const dashboardLanguage = {
|
||||||
loading: "Loading...",
|
loading: "Loading...",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const NavigationLanguage = {
|
export const NavigationLanguage = {
|
||||||
en: {
|
en: {
|
||||||
"/dashboard": "Dashboard",
|
"/dashboard": "Dashboard",
|
||||||
|
|
@ -22,6 +23,7 @@ export const NavigationLanguage = {
|
||||||
"/application": "Uygulama Paneli",
|
"/application": "Uygulama Paneli",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const EmployeeProfileLanguage = {
|
export const EmployeeProfileLanguage = {
|
||||||
tr: {
|
tr: {
|
||||||
userType: "Kullanıcı Tipi",
|
userType: "Kullanıcı Tipi",
|
||||||
|
|
@ -42,6 +44,7 @@ export const EmployeeProfileLanguage = {
|
||||||
duty: "Duty",
|
duty: "Duty",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const OccupantProfileLanguage = {
|
export const OccupantProfileLanguage = {
|
||||||
tr: {
|
tr: {
|
||||||
userType: "Kullanıcı Tipi",
|
userType: "Kullanıcı Tipi",
|
||||||
|
|
@ -68,25 +71,3 @@ export const OccupantProfileLanguage = {
|
||||||
buildNo: "Build No",
|
buildNo: "Build No",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// {
|
|
||||||
// "userType": "occupant",
|
|
||||||
// "selectionList": {
|
|
||||||
// "3fe72194-dad6-4ddc-8679-70acdbe7f619": {
|
|
||||||
// "build_uu_id": "3fe72194-dad6-4ddc-8679-70acdbe7f619",
|
|
||||||
// "build_name": "Build Example",
|
|
||||||
// "build_no": "B001",
|
|
||||||
// "occupants": [
|
|
||||||
// {
|
|
||||||
// "build_living_space_uu_id": "b67e5a37-ac04-45ab-8bca-5a3427358015",
|
|
||||||
// "part_uu_id": "441ef61b-1cc5-465b-90b2-4835d0e16540",
|
|
||||||
// "part_name": "APARTMAN DAIRESI : 1",
|
|
||||||
// "part_level": 1,
|
|
||||||
// "occupant_uu_id": "6bde6bf9-0d13-4b6f-a612-28878cd7324f",
|
|
||||||
// "description": "Daire Kiracısı",
|
|
||||||
// "code": "FL-TEN"
|
|
||||||
// }
|
|
||||||
// ]
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
"use client";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { PageProps } from "@/validations/translations/translation";
|
import { PageProps } from "@/validations/translations/translation";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,13 @@
|
||||||
import DashboardPage from "./dashboard/page";
|
import DashboardPage from "./dashboard/page";
|
||||||
import ApplicationPage from "./application/page";
|
import ApplicationPage from "./application/page";
|
||||||
|
import EventAppendPage from "./appenderEvent/page";
|
||||||
|
import ServiceAppendPage from "./appendersService/page";
|
||||||
|
|
||||||
const menuPages = {
|
const menuPages = {
|
||||||
"/dashboard": DashboardPage,
|
"/dashboard": DashboardPage,
|
||||||
"/application": ApplicationPage,
|
"/application": ApplicationPage,
|
||||||
|
"/append/event": EventAppendPage,
|
||||||
|
"/append/service": ServiceAppendPage
|
||||||
};
|
};
|
||||||
|
|
||||||
export default menuPages;
|
export default menuPages;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue