fix: add onboarding entry (#7375)

Don't know why it's missed..
https://github.com/toeverything/AFFiNE/pull/7109
This commit is contained in:
regischen
2024-06-28 07:03:33 +00:00
parent f4f84d2793
commit e877f20955

View File

@@ -1,6 +1,7 @@
import { notify } from '@affine/component'; import { notify } from '@affine/component';
import { authAtom, openSettingModalAtom } from '@affine/core/atoms'; import { authAtom, openSettingModalAtom } from '@affine/core/atoms';
import { AIProvider } from '@affine/core/blocksuite/presets/ai'; import { AIProvider } from '@affine/core/blocksuite/presets/ai';
import { toggleGeneralAIOnboarding } from '@affine/core/components/affine/ai-onboarding/apis';
import { mixpanel } from '@affine/core/utils'; import { mixpanel } from '@affine/core/utils';
import { getBaseUrl } from '@affine/graphql'; import { getBaseUrl } from '@affine/graphql';
import { Trans } from '@affine/i18n'; import { Trans } from '@affine/i18n';
@@ -398,6 +399,8 @@ Could you make a new website based on these notes and send back just the html fi
}, },
}); });
AIProvider.provide('onboarding', toggleGeneralAIOnboarding);
AIProvider.slots.requestUpgradePlan.on(() => { AIProvider.slots.requestUpgradePlan.on(() => {
getCurrentStore().set(openSettingModalAtom, { getCurrentStore().set(openSettingModalAtom, {
activeTab: 'billing', activeTab: 'billing',