Skip to content

Commit 4be0806

Browse files
committed
Close icon hides pop-up forever
1 parent ef116f9 commit 4be0806

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

src/components/NewFeaturePopup/index.tsx

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,15 @@ const NewFeaturePopup: React.FC<NewFeaturePopupProps> = ({
7878
}
7979

8080
return (
81-
<div
82-
className={`${styles.popup} ${isAnimating ? styles.popupVisible : styles.popupHidden}`}
83-
onClick={handleNavigate}
84-
>
85-
<div className={styles.content}>
81+
<div className={`${styles.popup} ${isAnimating ? styles.popupVisible : styles.popupHidden}`}>
82+
{/* Close button */}
83+
<button className={styles.closeButton} onClick={handleDismiss} aria-label="Close popup">
84+
<svg width="18" height="18" viewBox="0 0 18 18" fill="currentColor">
85+
<path d="M9 7.5l3.5-3.5a1 1 0 111.414 1.414L10.414 9l3.5 3.5a1 1 0 11-1.414 1.414L9 10.414l-3.5 3.5a1 1 0 11-1.414-1.414L7.586 9 4.086 5.5A1 1 0 115.5 4.086L9 7.5z"/>
86+
</svg>
87+
</button>
88+
89+
<div className={styles.content} onClick={handleNavigate}>
8690
{/* Badge */}
8791
<div className={styles.badge}>
8892
<div className={styles.badgeInner}>
@@ -98,6 +102,11 @@ const NewFeaturePopup: React.FC<NewFeaturePopupProps> = ({
98102
<span className={styles.clickText}>Click to explore →</span>
99103
</div>
100104
</div>
105+
106+
{/* Maybe later button */}
107+
<button className={styles.secondaryButton} onClick={handleDismiss}>
108+
<span>Maybe later</span>
109+
</button>
101110
</div>
102111
);
103112
};

0 commit comments

Comments
 (0)