chore: Onboarding path service plus redirects (#24679)
* i18n * WIP icon stuff * More icon work * More gradient tuning * Mvoe plan-icon to planicon.tsx * Fix cubic suggestion * Fix darkmode icon and gradients * Fix type error * Onboarding path service * Update usages of onboarding path and getting started hook
This commit is contained in:
1 parent
3418a25a85
commit
fa884e8516
10 files changed
+72
-16
No files matched your search
@@ -42,9 +42,10 @@ export function useRedirectToOnboardingIfNeeded() {
|
||||
|
||||
useEffect(() => {
|
||||
if (canRedirect) {
|
||||
router.replace("/getting-started");
|
||||
const gettingStartedPath = flags["onboarding-v3"] ? "/onboarding/getting-started" : "/getting-started";
|
||||
router.replace(gettingStartedPath);
|
||||
}
|
||||
}, [canRedirect, router]);
|
||||
}, [canRedirect, router, flags]);
|
||||
|
||||
return {
|
||||
isLoading,
|
||||
|
||||
Reference in new issue
Block a user