From f9e50972cd2d890ece964cf9f1bca311b6f5441b Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Sat, 23 Aug 2025 15:51:56 +0300 Subject: [PATCH] fix(order-form): hide next button on success & error pages --- apps/web/components/orders/order-form/index.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/web/components/orders/order-form/index.tsx b/apps/web/components/orders/order-form/index.tsx index 68ed8b3..92f1bca 100644 --- a/apps/web/components/orders/order-form/index.tsx +++ b/apps/web/components/orders/order-form/index.tsx @@ -27,13 +27,17 @@ function getStepComponent(step: string) { return STEP_COMPONENTS[step] ?? null; } -const BUTTON_COMPONENTS: Record = { - '': , +const BUTTON_COMPONENTS: Record = { + 'client-select': , 'datetime-select': , + error: null, + 'master-select': , + 'service-select': , + success: null, }; function getButtonComponent(step: string) { - return BUTTON_COMPONENTS[step] ?? ; + return BUTTON_COMPONENTS[step]; } export const OrderForm = withContext(OrderStoreProvider)(function () {