fix(core): local onboarding should dismiss after clicking learn more (#6942)

This commit is contained in:
CatsJuice 2024-05-16 07:41:48 +00:00
parent 6cef03c4c3
commit 46140039d9
No known key found for this signature in database
GPG Key ID: 1C1E76924FAFDDE4

View File

@ -39,7 +39,11 @@ const FooterActions = ({ onDismiss }: { onDismiss: () => void }) => {
return (
<div className={styles.footerActions}>
<a href="https://ai.affine.pro" target="_blank" rel="noreferrer">
<Button className={styles.actionButton} type="plain">
<Button
className={styles.actionButton}
type="plain"
onClick={onDismiss}
>
{t['com.affine.ai-onboarding.local.action-learn-more']()}
</Button>
</a>