File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed
Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ import { useWizard } from '../../../dist';
44import { Button } from '../../modules/common' ;
55import { Actions , Info } from './footer' ;
66
7- const FooterCustomStepIndex : React . FC = ( ) => {
7+ const FooterGoToStepIndex : React . FC = ( ) => {
88 const {
9- nextStep ,
9+ goToStep ,
1010 previousStep,
1111 isLoading,
1212 activeStep,
@@ -35,8 +35,8 @@ const FooterCustomStepIndex: React.FC = () => {
3535 Previous
3636 </ Button >
3737 < Button
38- label = "Next "
39- onClick = { ( ) => nextStep ( 2 ) }
38+ label = "Go to step 3 "
39+ onClick = { ( ) => goToStep ( 2 ) }
4040 disabled = { isLoading || isLastStep }
4141 />
4242 </ Actions >
@@ -45,4 +45,4 @@ const FooterCustomStepIndex: React.FC = () => {
4545 ) ;
4646} ;
4747
48- export default FooterCustomStepIndex ;
48+ export default FooterGoToStepIndex ;
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ import { Wizard } from '../../../../dist';
44import { AsyncStep , FooterStepIndex , Step } from '../../../components' ;
55import Section from '../../common/section' ;
66
7- const CustomNextStepIndex : React . FC = ( ) => {
7+ const GoToStepIndex : React . FC = ( ) => {
88 return (
99 < Section
10- title = "Custom step index "
11- description = "With custom step index on next step"
10+ title = "Go To Step "
11+ description = "Jump to given certain step index "
1212 showDivider = { false }
1313 >
1414 < Wizard footer = { < FooterStepIndex /> } >
@@ -21,4 +21,4 @@ const CustomNextStepIndex: React.FC = () => {
2121 ) ;
2222} ;
2323
24- export default CustomNextStepIndex ;
24+ export default GoToStepIndex ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { styled } from 'goober';
22import * as React from 'react' ;
33
44import AnimatedSection from './animated' ;
5- import CustomNextStepIndex from './customNextStepIndex ' ;
5+ import GoToStepIndex from './goToStepIndex ' ;
66import ReactQuerySection from './reactQuery' ;
77import SimpleSection from './simple' ;
88
@@ -18,7 +18,7 @@ const WizardModule = () => {
1818 < SimpleSection />
1919 < AnimatedSection />
2020 < ReactQuerySection />
21- < CustomNextStepIndex />
21+ < GoToStepIndex />
2222 </ Container >
2323 ) ;
2424} ;
Original file line number Diff line number Diff line change @@ -2287,9 +2287,9 @@ caniuse-api@^3.0.0:
22872287 lodash.uniq "^4.5.0"
22882288
22892289caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001219 :
2290- version "1.0.30001230 "
2291- resolved "https://registry.yarnpkg.com /caniuse-lite/-/caniuse-lite-1.0.30001230 .tgz#8135c57459854b2240b57a4a6786044bdc5a9f71 "
2292- integrity sha512-5yBd5nWCBS+jWKTcHOzXwo5xzcj4ePE/yjtkZyUV1BTUmrBaA9MRGC+e7mxnqXSA90CmCA8L3eKLaSUkt099IQ ==
2290+ version "1.0.30001265 "
2291+ resolved "https://registry.npmjs.org /caniuse-lite/-/caniuse-lite-1.0.30001265 .tgz"
2292+ integrity sha512-YzBnspggWV5hep1m9Z6sZVLOt7vrju8xWooFAgN6BA5qvy98qPAPb7vNUzypFaoh2pb3vlfzbDO8tB57UPGbtw ==
22932293
22942294caseless@~0.12.0 :
22952295 version "0.12.0"
You can’t perform that action at this time.
0 commit comments