Move verifier statement back into the left identity rail
Restore ProfileVerifierSection to its original spot as the first item in ProfileOverviewSections (left sidebar on desktop, overview tab on mobile), reverting the full-width-above-tabs placement. Keeps the 'How We Verify' heading inside the box and no shield icon.
This commit is contained in:
@@ -31,6 +31,7 @@ import { Nip05Badge } from '@/components/Nip05Badge';
|
||||
import { PledgeCard } from '@/components/PledgeCard';
|
||||
import { ProfileReactionButton } from '@/components/ProfileReactionButton';
|
||||
import { OrganizationsAllDialog } from '@/components/profile/OrganizationsAllDialog';
|
||||
import { ProfileVerifierSection } from '@/components/profile/ProfileVerifierSection';
|
||||
import { useCampaignModeration } from '@/hooks/useCampaignModeration';
|
||||
import { useProfileOrganizations, type ProfileOrganization } from '@/hooks/useProfileOrganizations';
|
||||
import type { ProfileCampaignStats } from '@/hooks/useProfileCampaignStats';
|
||||
@@ -389,6 +390,11 @@ export function ProfileOverviewSections({
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<div className={cn('flex flex-col gap-5', className)}>
|
||||
{/* Verifier statement (kind 14672) — surfaced first so donors can
|
||||
immediately see how this account verifies campaigns. Renders
|
||||
nothing when the profile has not published a statement. */}
|
||||
<ProfileVerifierSection pubkey={pubkey} />
|
||||
|
||||
{/* Profile fields (rendered upstream) — placed first so the
|
||||
profile's own freeform metadata (links, addresses, etc.) is
|
||||
the first thing visitors read, ahead of campaigns/orgs. */}
|
||||
|
||||
@@ -69,7 +69,6 @@ import { ProfileCampaignsTab } from '@/components/profile/ProfileCampaignsTab';
|
||||
import { ProfilePledgesTab } from '@/components/profile/ProfilePledgesTab';
|
||||
import { ProfileActivityTab } from '@/components/profile/ProfileActivityTab';
|
||||
import { ProfileTabs } from '@/components/profile/ProfileTabs';
|
||||
import { ProfileVerifierSection } from '@/components/profile/ProfileVerifierSection';
|
||||
import type { ParsedCampaign } from '@/lib/campaign';
|
||||
import type { AddrCoords } from '@/hooks/useEvent';
|
||||
import { sanitizeUrl } from '@/lib/sanitizeUrl';
|
||||
@@ -1427,12 +1426,6 @@ function FollowersListModal({ pubkey, open, onOpenChange, displayName }: Followe
|
||||
`min-w-0` is critical inside a grid track so long unbroken
|
||||
text doesn't push the column wider than its fraction. */}
|
||||
<section className="min-w-0">
|
||||
{/* Verifier statement (kind 14672) — full-width above the
|
||||
tabs so donors can read how this account vets campaigns.
|
||||
Renders nothing when no statement is published. */}
|
||||
{pubkey && (
|
||||
<ProfileVerifierSection pubkey={pubkey} className="mb-5" />
|
||||
)}
|
||||
<ProfileTabs
|
||||
tabs={desktopTabs}
|
||||
activeTab={DESKTOP_TAB_IDS.has(activeTab) ? activeTab : 'activity'}
|
||||
@@ -1521,11 +1514,6 @@ function FollowersListModal({ pubkey, open, onOpenChange, displayName }: Followe
|
||||
authorEvent={authorEvent}
|
||||
/>
|
||||
|
||||
{/* Verifier statement (kind 14672) — full-width above the
|
||||
tabs, below the identity header. Renders nothing when
|
||||
no statement is published. */}
|
||||
<ProfileVerifierSection pubkey={pubkey} className="mt-5" />
|
||||
|
||||
{/* Tab bar — sticky to the top of the page scroll once
|
||||
it leaves the viewport. Sits right below the stats. */}
|
||||
<div className="mt-5 min-w-0">
|
||||
|
||||
Reference in New Issue
Block a user