refactor(onboarding): restructure onboarding routes and components
- Removed obsolete onboarding routes: complete, create-complex, index, verify-email, and verify. - Introduced new setup stepper page for onboarding process. - Created a multi-step setup component to handle complex creation with validation. - Added new schemas for complex creation and plan features. - Implemented detailed steps for complex name, location, plan selection, and court setup. - Enhanced error handling and user feedback during the onboarding process.
This commit is contained in:
@@ -60,13 +60,23 @@ export function HomePage() {
|
||||
}
|
||||
}
|
||||
|
||||
if (!currentComplexQuery.isLoading && !currentComplexQuery.data && myComplexesQuery.data) {
|
||||
if (
|
||||
!currentComplexQuery.isLoading &&
|
||||
!currentComplexQuery.data &&
|
||||
myComplexesQuery.data &&
|
||||
!myComplexesQuery.isLoading
|
||||
) {
|
||||
if (myComplexesQuery.data.length === 0) {
|
||||
navigate({ to: '/onboard/setup' });
|
||||
return;
|
||||
}
|
||||
autoSelect();
|
||||
}
|
||||
}, [
|
||||
currentComplexQuery.isLoading,
|
||||
currentComplexQuery.data,
|
||||
myComplexesQuery.data,
|
||||
myComplexesQuery.isLoading,
|
||||
navigate,
|
||||
queryClient,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user