MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / updateStep

Function updateStep

src/content/Components/Stepper/Stepper.jsx:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 const isLastStep = currentStep === totalSteps;
29
30 const updateStep = newStep => {
31 setCurrentStep(newStep);
32 if (newStep > totalSteps) {
33 onFinalStepCompleted();
34 } else {
35 onStepChange(newStep);
36 }
37 };
38
39 const handleBack = () => {
40 if (currentStep > 1) {

Callers 4

handleBackFunction · 0.70
handleNextFunction · 0.70
handleCompleteFunction · 0.70
StepperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected