feat(status-page): add step-wizard progress indicator to create flow
This commit is contained in:
1 parent
7df3ee6ecd
commit
7617929700
2 files changed
+362
-305
No files matched your search
@@ -66,9 +66,7 @@ const fieldSteps = (): [name: FieldPath<StatusPageFormData>, step: number][] =>
|
||||
|
||||
// The fields that belong to a given wizard step. Derived from the schema so it
|
||||
// can't drift from the field definitions.
|
||||
export const statusPageStepFieldsFor = (
|
||||
step: number
|
||||
): FieldPath<StatusPageFormData>[] =>
|
||||
export const statusPageStepFieldsFor = (step: number): FieldPath<StatusPageFormData>[] =>
|
||||
fieldSteps()
|
||||
.filter(([, fieldStep]) => fieldStep === step)
|
||||
.map(([name]) => name);
|
||||
|
||||
Reference in new issue
Block a user