diff --git a/frontend/app/profile/invites/page.tsx b/frontend/app/profile/invites/page.tsx index 2090650..7fb0a29 100644 --- a/frontend/app/profile/invites/page.tsx +++ b/frontend/app/profile/invites/page.tsx @@ -3,7 +3,6 @@ import { useRouter } from 'next/navigation' import { useEffect, useMemo, useState } from 'react' import { authFetch, clearToken, getApiBase, getToken } from '../../lib/auth' -import { useUserViewPreview } from '../../lib/viewMode' type ProfileInfo = { username: string @@ -98,7 +97,6 @@ export default function ProfileInvitesPage() { const [inviteManagedByMaster, setInviteManagedByMaster] = useState(false) const [masterInviteTemplate, setMasterInviteTemplate] = useState(null) const [loading, setLoading] = useState(true) - const viewAsUser = useUserViewPreview() const signupBaseUrl = useMemo(() => { if (typeof window === 'undefined') return '/signup' @@ -317,54 +315,8 @@ export default function ProfileInvitesPage() {
-

{viewAsUser ? 'Invites' : 'My invites'}

-

- {viewAsUser - ? 'Preview the invite workspace exactly as a permitted non-admin user sees it.' - : 'Create invite links, email them directly, and track who you have invited.'} -

-
-
- -
-
- - {profile && viewAsUser ? ( -
- User view preview. The non-admin presentation is active. Your admin permissions and invite data remain unchanged. -
- ) : profile ? ( -
- Signed in as {profile.username} ({profile.role}). -
- ) : null} - -
-
- - - - +

Invites

+

Create invite links, email them directly, and track who you have invited.

diff --git a/frontend/app/profile/page.tsx b/frontend/app/profile/page.tsx index 064802c..d227de7 100644 --- a/frontend/app/profile/page.tsx +++ b/frontend/app/profile/page.tsx @@ -1,7 +1,7 @@ 'use client' -import { useEffect, useMemo, useState } from 'react' import { useRouter } from 'next/navigation' +import { useEffect, useMemo, useState } from 'react' import { authFetch, clearToken, getApiBase, getToken } from '../lib/auth' type ProfileInfo = { @@ -265,11 +265,6 @@ export default function ProfilePage() { > Activity - {canManageInvites ? ( - - ) : null}