mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 13:29:02 +08:00
chore(core): adjust ai onboarding dismiss logic, persist dialog and dismiss once closed (#7417)
This commit is contained in:
@@ -184,10 +184,11 @@ export const AIOnboardingGeneral = () => {
|
||||
|
||||
return readyToOpen ? (
|
||||
<Modal
|
||||
persistent
|
||||
open={open}
|
||||
onOpenChange={v => {
|
||||
showAIOnboardingGeneral$.next(v);
|
||||
if (!v && isLast) toggleGeneralAIOnboarding(false);
|
||||
if (!v) toggleGeneralAIOnboarding(false);
|
||||
}}
|
||||
contentOptions={{ className: styles.dialog }}
|
||||
overlayOptions={{ className: baseStyles.dialogOverlay }}
|
||||
|
||||
Reference in New Issue
Block a user