mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-03 14:11:54 +03:00
chore(core): disable onborading on the web (#6222)
This commit is contained in:
parent
150c22936d
commit
69cb8b0f60
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user