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