fix: hide delivery choice flow after save, remove confusing hero block
This commit is contained in:
parent
136e5c826a
commit
f90b476bfd
|
|
@ -306,6 +306,7 @@ 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">
|
||||
{!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>
|
||||
|
|
@ -315,6 +316,7 @@ export const ClientDeliveryPage = () => {
|
|||
</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}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue