Skip to content

Commit 06393c5

Browse files
committed
chore: update playground
1 parent c9bba3d commit 06393c5

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

playground/components/footer/footerStepIndex.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { useWizard } from '../../../dist';
44
import { Button } from '../../modules/common';
55
import { 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;

playground/modules/wizard/customNextStepIndex/index.tsx renamed to playground/modules/wizard/goToStepIndex/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { Wizard } from '../../../../dist';
44
import { AsyncStep, FooterStepIndex, Step } from '../../../components';
55
import 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;

playground/modules/wizard/wizard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { styled } from 'goober';
22
import * as React from 'react';
33

44
import AnimatedSection from './animated';
5-
import CustomNextStepIndex from './customNextStepIndex';
5+
import GoToStepIndex from './goToStepIndex';
66
import ReactQuerySection from './reactQuery';
77
import SimpleSection from './simple';
88

@@ -18,7 +18,7 @@ const WizardModule = () => {
1818
<SimpleSection />
1919
<AnimatedSection />
2020
<ReactQuerySection />
21-
<CustomNextStepIndex />
21+
<GoToStepIndex />
2222
</Container>
2323
);
2424
};

playground/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2287,9 +2287,9 @@ caniuse-api@^3.0.0:
22872287
lodash.uniq "^4.5.0"
22882288

22892289
caniuse-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

22942294
caseless@~0.12.0:
22952295
version "0.12.0"

0 commit comments

Comments
 (0)