From 6748a3ffad7fc24973074f13cc9a14cfdb76344b Mon Sep 17 00:00:00 2001 From: DanielS Date: Tue, 11 Aug 2026 22:28:28 +0200 Subject: [PATCH] fix(wizard): connect direction state to step slide animations --- shop/components/order-wizard.tsx | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/shop/components/order-wizard.tsx b/shop/components/order-wizard.tsx index c69d035..4797616 100644 --- a/shop/components/order-wizard.tsx +++ b/shop/components/order-wizard.tsx @@ -94,6 +94,7 @@ export function OrderWizard({ const router = useRouter() // Upgrade-Mode: starte direkt bei Schritt 3 (Software) const [step, setStep] = useState(upgradeMode ? 3 : (initialOrder ? 3 : 1)) + const [direction, setDirection] = useState(1) const [isSubmitting, setIsSubmitting] = useState(false) const [selectedCompanyId, setSelectedCompanyId] = useState( initialOrder?.company_id ?? (isAdmin ? 'all' : null) @@ -938,9 +939,9 @@ export function OrderWizard({ {step === 1 && (
@@ -1077,9 +1078,9 @@ export function OrderWizard({ {step === 4 && (