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

Function handleBack

src/ts-tailwind/Components/Stepper/Stepper.tsx:58–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 };
57
58 const handleBack = () => {
59 if (currentStep > 1) {
60 setDirection(-1);
61 updateStep(currentStep - 1);
62 }
63 };
64
65 const handleNext = () => {
66 if (!isLastStep) {

Callers

nothing calls this directly

Calls 1

updateStepFunction · 0.70

Tested by

no test coverage detected