-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/stepper component #2204
base: main
Are you sure you want to change the base?
Feat/stepper component #2204
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 5 Ignored Deployments
|
|
<Wizard | ||
steps={[ | ||
{ title: 'Paste Data' }, | ||
{ title: 'Add Signers' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check
import { WizardElementProps } from '../model'; | ||
|
||
export const WizardStep: FC<WizardElementProps> = ({ | ||
children, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pass id and title, the goto will find the step name and navigate to it
|
||
export const Wizard: FC<WizardProps> = ({ | ||
children, | ||
steps, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need
return null; | ||
} | ||
|
||
if (child.type === Wizard.Step) { | ||
if (child.type === WizardStep) { | ||
stepIndex++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
evaluate from children.props.id and track the order
This PR is stale because it is open for 60 days with no activity |
No description provided.