Skip to content

Commit

Permalink
fix: change header to user profile header in page for moderation
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-fox93 committed May 29, 2024
1 parent a292f0c commit ad71449
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const UserProfileMain = async ({
{getHourlyRateDisplay(hourlyRateMin, currency, hourlyRateMax)}
</p>
</div>
{children}
</div>
</>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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({
Expand All @@ -31,7 +31,7 @@ export default async function ModerationUserProfile({
<div className={styles.wrapper}>
<ModerationActionHeader profileOwnerRoles={profileOwner.roles} />
<UserProfileMain profileId={profile.id}>
<Header />
<UserProfileHeader profileId={profile.id} withBackButton />
</UserProfileMain>
<UserProfileDetails profileId={profile.id} />
</div>
Expand Down

0 comments on commit ad71449

Please sign in to comment.