f7a376bd7c
- /rename-character y /customize-character: renombrar/personalizar pagados por SumUp (getRenamePrice/getCustomizePrice). SumUp ahora es service-aware: columna home_stripelog.service; createSumUpCheckout guarda service+character; fulfillSumUpCheckout despacha a la acción del servicio (.char rename/customi) o, sin service, acredita PD. [service]/checkout acepta provider:'sumup'; PaidServiceForm acepta provider+confirmText; service-success maneja el return SumUp. Se eliminan las antiguas /rename y /customize (Stripe). - /revive-character (comparte ReviveServiceContent); se elimina /revive. - Renombres de ruta + todos sus enlaces: /account -> /my-account, /recruit -> /recruit-a-friend, /unstuck -> /unstuck-character. (/select-account y /api/account/* intactos.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
32 lines
924 B
TypeScript
32 lines
924 B
TypeScript
import { getTranslations } from 'next-intl/server'
|
|
import { Link } from '@/i18n/navigation'
|
|
|
|
/**
|
|
* Caja de servicio con la estructura EXACTA de Django: title-box-content con
|
|
* <h2> + enlaces "back-to-account" / "back-to-account-responsive", y el cuerpo
|
|
* en body-box-content justified. Se usa dentro de <PageShell>.
|
|
*/
|
|
export async function ServiceBox({
|
|
heading,
|
|
children,
|
|
}: {
|
|
heading?: string
|
|
children: React.ReactNode
|
|
}) {
|
|
const t = await getTranslations('Services')
|
|
return (
|
|
<div className="box-content">
|
|
<div className="title-box-content">
|
|
<h2>{heading ?? t('info')}</h2>
|
|
<Link className="back-to-account" href="/my-account">
|
|
{t('back')}
|
|
</Link>
|
|
<Link className="back-to-account-responsive" href="/my-account">
|
|
{t('backShort')}
|
|
</Link>
|
|
</div>
|
|
<div className="body-box-content justified">{children}</div>
|
|
</div>
|
|
)
|
|
}
|