new version
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user