fix: hide delivery choice flow after save, remove confusing hero block

This commit is contained in:
root 2026-05-27 14:40:20 +00:00
parent 136e5c826a
commit f90b476bfd
1 changed files with 12 additions and 10 deletions

View File

@ -306,15 +306,17 @@ export const ClientDeliveryPage = () => {
return (
<main className="min-h-screen bg-[var(--color-bg)] px-3 py-4 sm:px-6 sm:py-8">
<div className="mx-auto flex w-full max-w-3xl flex-col gap-4">
<Panel className="space-y-3 p-5 sm:p-6">
<p className="text-sm uppercase tracking-[0.24em] text-[var(--color-text-muted)]">Доставка заказа</p>
<h1 className="text-2xl font-semibold leading-tight sm:text-3xl">Согласование доставки</h1>
{heroDescription ? (
<p className="text-sm leading-6 text-[var(--color-text-muted)]">
{heroDescription}
</p>
) : null}
</Panel>
{!isChoiceSaved ? (
<Panel className="space-y-3 p-5 sm:p-6">
<p className="text-sm uppercase tracking-[0.24em] text-[var(--color-text-muted)]">Доставка заказа</p>
<h1 className="text-2xl font-semibold leading-tight sm:text-3xl">Согласование доставки</h1>
{heroDescription ? (
<p className="text-sm leading-6 text-[var(--color-text-muted)]">
{heroDescription}
</p>
) : null}
</Panel>
) : null}
<OrderCompositionPanel invitation={invitation} />
@ -345,7 +347,7 @@ export const ClientDeliveryPage = () => {
selectedSlot={effectiveSelectedSlot}
onConfirmChoice={handleSaveChoice}
/>
) : !isChoiceSaved ? (
) : !isActiveState && !isChoiceSaved ? (
<DeliveryStateNotice state={invitationState} />
) : null}