From ad71449e1a171dbab4835950150223832b6f71cc Mon Sep 17 00:00:00 2001 From: The Fox Date: Wed, 29 May 2024 21:13:20 +0200 Subject: [PATCH] fix: change header to user profile header in page for moderation --- .../UserProfile/UserProfileMain/UserProfileMain.tsx | 1 + .../(profile)/(routes)/moderation/profile/[id]/page.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/platform-app/src/app/[locale]/(profile)/(components)/UserProfile/UserProfileMain/UserProfileMain.tsx b/apps/platform-app/src/app/[locale]/(profile)/(components)/UserProfile/UserProfileMain/UserProfileMain.tsx index 6467a3aa..8fff29c3 100644 --- a/apps/platform-app/src/app/[locale]/(profile)/(components)/UserProfile/UserProfileMain/UserProfileMain.tsx +++ b/apps/platform-app/src/app/[locale]/(profile)/(components)/UserProfile/UserProfileMain/UserProfileMain.tsx @@ -66,6 +66,7 @@ const UserProfileMain = async ({ {getHourlyRateDisplay(hourlyRateMin, currency, hourlyRateMax)}

+ {children} ) diff --git a/apps/platform-app/src/app/[locale]/(profile)/(routes)/moderation/profile/[id]/page.tsx b/apps/platform-app/src/app/[locale]/(profile)/(routes)/moderation/profile/[id]/page.tsx index 8a188e2a..ff16c491 100644 --- a/apps/platform-app/src/app/[locale]/(profile)/(routes)/moderation/profile/[id]/page.tsx +++ b/apps/platform-app/src/app/[locale]/(profile)/(routes)/moderation/profile/[id]/page.tsx @@ -1,4 +1,3 @@ -import Header from '@/app/[locale]/(profile)/(components)/Header/Header' import ModerationActionHeader from '@/app/[locale]/(profile)/(routes)/moderation/(components)/ModerationActionHeader/ModerationActionHeader' import { AppRoutes } from '@/utils/routes' import { redirect } from 'next/navigation' @@ -11,6 +10,7 @@ import UserProfileDetails from '@/app/[locale]/(profile)/(components)/UserProfil import UserProfileMain from '@/app/[locale]/(profile)/(components)/UserProfile/UserProfileMain/UserProfileMain' import { ProfileProvider } from '@/app/[locale]/(profile)/_providers/Profile.provider' +import UserProfileHeader from '@/app/[locale]/(profile)/(components)/UserProfileHeader/UserProfileHeader' import styles from './page.module.scss' export default async function ModerationUserProfile({ @@ -31,7 +31,7 @@ export default async function ModerationUserProfile({
-
+