mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
chore(core): disable onborading on the web (#6222)
This commit is contained in:
@@ -4,12 +4,11 @@ import { WorkspaceListService } from '@toeverything/infra';
|
|||||||
import { useService } from '@toeverything/infra';
|
import { useService } from '@toeverything/infra';
|
||||||
import { useLiveData } from '@toeverything/infra';
|
import { useLiveData } from '@toeverything/infra';
|
||||||
import { lazy, useEffect, useLayoutEffect, useState } from 'react';
|
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 { createFirstAppData } from '../bootstrap/first-app-data';
|
||||||
import { UserWithWorkspaceList } from '../components/pure/workspace-slider-bar/user-with-workspace-list';
|
import { UserWithWorkspaceList } from '../components/pure/workspace-slider-bar/user-with-workspace-list';
|
||||||
import { WorkspaceFallback } from '../components/workspace';
|
import { WorkspaceFallback } from '../components/workspace';
|
||||||
import { appConfigStorage } from '../hooks/use-app-config-storage';
|
|
||||||
import { useNavigateHelper } from '../hooks/use-navigate-helper';
|
import { useNavigateHelper } from '../hooks/use-navigate-helper';
|
||||||
import { WorkspaceSubPath } from '../shared';
|
import { WorkspaceSubPath } from '../shared';
|
||||||
|
|
||||||
@@ -20,9 +19,6 @@ const AllWorkspaceModals = lazy(() =>
|
|||||||
);
|
);
|
||||||
|
|
||||||
export const loader: LoaderFunction = async () => {
|
export const loader: LoaderFunction = async () => {
|
||||||
if (!environment.isDesktop && appConfigStorage.get('onBoarding')) {
|
|
||||||
return redirect('/onboarding');
|
|
||||||
}
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user