new version

This commit is contained in:
Ivan Rezchikov
2026-07-11 19:04:41 +03:00
parent 3c64666299
commit b7334696e4
16 changed files with 313 additions and 269 deletions
-4
View File
@@ -4,7 +4,6 @@ import MeComponent from "./component";
import { fetchConsents } from "@/actions/consents";
import { fetchAllPositions, fetchAllPermissions, fetchAdminUsers, fetchMyPositions } from "@/actions/positions";
import { getLocale } from "next-intl/server";
import { Document } from "@/types";
export default async function Me() {
const locale = await getLocale();
@@ -14,8 +13,6 @@ export default async function Me() {
redirect("/api/auth/initiate");
}
const documents: Document[] = [];
const [consents, myPositions] = await Promise.all([
fetchConsents(),
fetchMyPositions(locale),
@@ -35,7 +32,6 @@ export default async function Me() {
return (
<MeComponent
userData={user}
documentsData={documents}
consentsData={consents}
permissionsData={permissions}
positionsData={positions}