HomePhabricator
Diffusion Comm c9c012b417b6

[web] Introduce `Stepper` - common multiple step component

Description

[web] Introduce Stepper - common multiple step component

Summary:
Depends on D5185
Context: here

Introduce common Stepper component, for creating multiple step forms and (in the future) multiple page modals.

The component receives steps, information about active step and steps setter from parent - it doesn't keep the state with current active step itself.

For better code cleanliness, to set activeStep, we use children key property instead of using array indexes.

Test Plan: This component will be used in next diff (firstly in ComposeSubchannelModal). Currently, no changes in the app.

Reviewers: tomek, atul

Reviewed By: tomek

Subscribers: ashoat, tomek, atul, abosh

Differential Revision: https://phab.comm.dev/D5186

Details

Provenance
jakubAuthored on Sep 19 2022, 4:05 AM
Reviewer
tomek
Differential Revision
D5186: [web] Introduce `Stepper` - common multiple step component
Parents
rCOMMc043108ce2c9: [native] Unify thread settings accessibility
Branches
Unknown
Tags
Unknown