From 191dc4da46bc2ae605ca242fddf0f982e7c6bb08 Mon Sep 17 00:00:00 2001 From: Fangdun Tsai Date: Wed, 20 Mar 2024 14:28:56 +0800 Subject: [PATCH] chore: disable onborading on the web --- packages/frontend/core/src/pages/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/frontend/core/src/pages/index.tsx b/packages/frontend/core/src/pages/index.tsx index 76d8379994e5..8314d22d3e87 100644 --- a/packages/frontend/core/src/pages/index.tsx +++ b/packages/frontend/core/src/pages/index.tsx @@ -4,12 +4,11 @@ import { WorkspaceListService } from '@toeverything/infra'; import { useService } from '@toeverything/infra'; import { useLiveData } from '@toeverything/infra'; import { lazy, useEffect, useLayoutEffect, useState } from 'react'; -import { type LoaderFunction, redirect } from 'react-router-dom'; +import { type LoaderFunction } from 'react-router-dom'; import { createFirstAppData } from '../bootstrap/first-app-data'; import { UserWithWorkspaceList } from '../components/pure/workspace-slider-bar/user-with-workspace-list'; import { WorkspaceFallback } from '../components/workspace'; -import { appConfigStorage } from '../hooks/use-app-config-storage'; import { useNavigateHelper } from '../hooks/use-navigate-helper'; import { WorkspaceSubPath } from '../shared'; @@ -20,9 +19,6 @@ const AllWorkspaceModals = lazy(() => ); export const loader: LoaderFunction = async () => { - if (!environment.isDesktop && appConfigStorage.get('onBoarding')) { - return redirect('/onboarding'); - } return null; };