mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 18:02:47 +08:00
chore: remove AIOnboardingGeneral (#9326)
This commit is contained in:
@@ -3,7 +3,6 @@ import { useService } from '@toeverything/infra';
|
||||
import { Suspense, useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { AIOnboardingEdgeless } from './edgeless.dialog';
|
||||
import { AIOnboardingGeneral } from './general.dialog';
|
||||
import { AIOnboardingLocal } from './local.dialog';
|
||||
import { AIOnboardingType } from './type';
|
||||
|
||||
@@ -28,14 +27,12 @@ const useDismiss = (key: AIOnboardingType) => {
|
||||
};
|
||||
|
||||
export const WorkspaceAIOnboarding = () => {
|
||||
const [dismissGeneral] = useDismiss(AIOnboardingType.GENERAL);
|
||||
const [dismissLocal] = useDismiss(AIOnboardingType.LOCAL);
|
||||
const featureFlagService = useService(FeatureFlagService);
|
||||
const enableAI = featureFlagService.flags.enable_ai.value;
|
||||
|
||||
return (
|
||||
<Suspense>
|
||||
{!enableAI || dismissGeneral ? null : <AIOnboardingGeneral />}
|
||||
{!enableAI || dismissLocal ? null : <AIOnboardingLocal />}
|
||||
</Suspense>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user