diff --git a/apps/web/app/[language]/profile/page.tsx b/apps/web/app/[language]/profile/page.tsx index 2ccc0d738..b97655e2b 100644 --- a/apps/web/app/[language]/profile/page.tsx +++ b/apps/web/app/[language]/profile/page.tsx @@ -1,4 +1,3 @@ -import { LinkButton } from '@gw2treasures/ui/components/Form/Button'; import { FormatDate } from '@/components/Format/FormatDate'; import { Headline } from '@gw2treasures/ui/components/Headline/Headline'; import { HeroLayout } from '@/components/Layout/HeroLayout'; @@ -8,11 +7,12 @@ import { db } from '@/lib/prisma'; import type { Metadata } from 'next'; import { redirect } from 'next/navigation'; import { Suspense, cache } from 'react'; -import { FlexRow } from '@gw2treasures/ui/components/Layout/FlexRow'; import { Accounts } from './accounts'; import { Skeleton } from '@/components/Skeleton/Skeleton'; import { revalidatePath } from 'next/cache'; import { SubmitButton } from '@gw2treasures/ui/components/Form/Buttons/SubmitButton'; +import { ExternalLink } from '@gw2treasures/ui/components/Link/ExternalLink'; +import { pageView } from '@/lib/pageView'; const getUserData = cache(async () => { const session = await getUser(); @@ -41,13 +41,13 @@ const getUserData = cache(async () => { export default async function ProfilePage() { const { sessionId, user } = await getUserData(); + await pageView('profile'); return ( {user.name}} toc> - - Logout - {user.roles.includes('Admin') && Admin} - +

+ You can change your username on your gw2.me Profile. +

Accounts }> @@ -68,7 +68,7 @@ export default async function ProfilePage() { {session.info}{session.id === sessionId && ' (Current Session)'} - + {session.id === sessionId ? 'now' : } ))}