@@ -86,31 +115,40 @@ export const MaintOtpModal = ({ isOpen, onOpenChange, action }: MaintOtpModalPro
- {/* Pin Input */}
-
-
- Enter maintenance code
-
-
-
-
-
-
-
-
-
-
- {error && (
-
{error}
- )}
-
+ {/* Pre-step content (e.g., campaign selection) */}
+ {action.needsPreStep && preStepContent && (
+
+ {preStepContent}
+
+ )}
+
+ {/* Pin Input — shown when pre-step is ready (or no pre-step needed) */}
+ {showOtp && (
+
+
+ Enter maintenance code
+
+
+
+
+
+
+
+
+
+
+ {error && (
+
{error}
+ )}
+
+ )}
{/* Footer */}
@@ -120,7 +158,7 @@ export const MaintOtpModal = ({ isOpen, onOpenChange, action }: MaintOtpModalPro