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

Function updateStep

src/tailwind/Components/Stepper/Stepper.jsx:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 const isLastStep = currentStep === totalSteps;
27
28 const updateStep = newStep => {
29 setCurrentStep(newStep);
30 if (newStep > totalSteps) onFinalStepCompleted();
31 else onStepChange(newStep);
32 };
33
34 const handleBack = () => {
35 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