Remove h2 displaying truncated public key from presentation form header
This commit is contained in:
parent
107571c378
commit
e5a95bc627
@ -167,7 +167,6 @@ function PresentationForm({
|
||||
error,
|
||||
loading,
|
||||
handleSubmit,
|
||||
userName,
|
||||
}: {
|
||||
draft: AuthorPresentationDraft
|
||||
setDraft: (next: AuthorPresentationDraft) => void
|
||||
@ -175,7 +174,6 @@ function PresentationForm({
|
||||
error: string | null
|
||||
loading: boolean
|
||||
handleSubmit: (e: FormEvent<HTMLFormElement>) => Promise<void>
|
||||
userName: string
|
||||
}) {
|
||||
return (
|
||||
<form
|
||||
@ -184,7 +182,7 @@ function PresentationForm({
|
||||
}}
|
||||
className="border border-neon-cyan/20 rounded-lg p-6 bg-cyber-dark space-y-4"
|
||||
>
|
||||
<PresentationFormHeader userName={userName} />
|
||||
<PresentationFormHeader />
|
||||
<PresentationFields draft={draft} onChange={setDraft} />
|
||||
<ValidationError message={validationError ?? error} />
|
||||
<ArticleFormButtons loading={loading} />
|
||||
@ -349,9 +347,6 @@ function AuthorPresentationFormView({
|
||||
return <SuccessNotice />
|
||||
}
|
||||
|
||||
// Get user name or fallback to shortened pubkey
|
||||
const userName = profile?.name ?? (pubkey ? `${pubkey.substring(0, 16)}...` : t('presentation.fallback.user'))
|
||||
|
||||
return (
|
||||
<PresentationForm
|
||||
draft={state.draft}
|
||||
@ -360,7 +355,6 @@ function AuthorPresentationFormView({
|
||||
error={state.error}
|
||||
loading={state.loading}
|
||||
handleSubmit={state.handleSubmit}
|
||||
userName={userName}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@ -1,15 +1,8 @@
|
||||
import { t } from '@/lib/i18n'
|
||||
|
||||
interface PresentationFormHeaderProps {
|
||||
userName: string
|
||||
}
|
||||
|
||||
export function PresentationFormHeader({ userName }: PresentationFormHeaderProps) {
|
||||
export function PresentationFormHeader() {
|
||||
return (
|
||||
<div className="mb-6">
|
||||
<h2 className="text-2xl font-bold mb-2 text-neon-cyan font-mono">
|
||||
{userName}
|
||||
</h2>
|
||||
<p className="text-cyber-accent text-sm mb-2">
|
||||
{t('presentation.description')}
|
||||
</p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user