This commit is contained in:
@@ -12,6 +12,14 @@ interface OnboardingFlowProps {
|
||||
*/
|
||||
userName?: string;
|
||||
userEmail?: string;
|
||||
/**
|
||||
* Bug 6: when present, the wizard is rendered in edit mode against
|
||||
* the given pending request. See `OnboardingWizard` for the full
|
||||
* shape and behavioural contract.
|
||||
*/
|
||||
editingRequest?: React.ComponentProps<
|
||||
typeof OnboardingWizard
|
||||
>["editingRequest"];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -29,6 +37,7 @@ export function OnboardingFlow({
|
||||
orgName,
|
||||
userName,
|
||||
userEmail,
|
||||
editingRequest,
|
||||
}: OnboardingFlowProps) {
|
||||
const router = useRouter();
|
||||
|
||||
@@ -37,6 +46,7 @@ export function OnboardingFlow({
|
||||
orgName={orgName}
|
||||
userName={userName}
|
||||
userEmail={userEmail}
|
||||
editingRequest={editingRequest}
|
||||
onComplete={() => {
|
||||
// Navigate back to /dashboard and re-fetch on the server. The
|
||||
// parent server component will see the new `pending` row and
|
||||
|
||||
Reference in New Issue
Block a user