handle previous state
This commit is contained in:
parent
ed3f70af86
commit
4bbe289c95
@ -86,7 +86,7 @@ const ProcessedPayment = ({
|
||||
};
|
||||
const handlPrevious=()=>{
|
||||
setCurrentStep,
|
||||
setStepStatus((prev) => ({ ...prev, 2: "pending" }));
|
||||
setStepStatus((prev) => ({ ...prev, 2: "pending",3:"pending" }));
|
||||
setCurrentStep(2);
|
||||
}
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@ import SelectPlan from "../../components/UserSubscription/SelectPlan";
|
||||
import Review from "../../components/UserSubscription/Review";
|
||||
|
||||
const MakeSubscription = () => {
|
||||
const [currentStep, setCurrentStep] = useState(3);
|
||||
const [currentStep, setCurrentStep] = useState(1);
|
||||
const [responsePayment, setResponsePayment] = useState(null);
|
||||
|
||||
const [stepStatus, setStepStatus] = useState({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user