Skip to content

Commit f4787ee

Browse files
UI update: Replaced advance notice select with orange button chips in Push Settings
1 parent 8269465 commit f4787ee

2 files changed

Lines changed: 24 additions & 28 deletions

File tree

web/src/pages/Cabinet/components/NotificationEditorSheet.module.css

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,31 +83,28 @@
8383
color: #ffffff;
8484
}
8585

86-
.selectWrap {
87-
position: relative;
88-
width: 100%;
86+
.advanceRow {
87+
display: flex;
88+
gap: 12px;
8989
}
9090

91-
.select {
92-
width: 100%;
93-
height: 52px;
94-
padding: 0 16px;
91+
.advanceBtn {
92+
flex: 1;
93+
height: 48px;
9594
background: #ffffff;
9695
border: 1px solid #e5e7eb;
9796
border-radius: 12px;
98-
font-size: 16px;
99-
color: #1f2937;
100-
appearance: none;
97+
font-size: 14px;
98+
font-weight: 600;
99+
color: #4b5563;
101100
cursor: pointer;
101+
transition: all 0.2s;
102102
}
103103

104-
.selectIcon {
105-
position: absolute;
106-
right: 16px;
107-
top: 50%;
108-
transform: translateY(-50%);
109-
pointer-events: none;
110-
color: #4b5563;
104+
.advanceBtnSelected {
105+
background: #f97316;
106+
border-color: #f97316;
107+
color: #ffffff;
111108
}
112109

113110
.toggleRow {

web/src/pages/Cabinet/components/NotificationEditorSheet.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,16 @@ export const NotificationEditorSheet: React.FC<NotificationEditorSheetProps> = (
100100

101101
<div className={styles.formGroup}>
102102
<div className={styles.label}>Попередити за</div>
103-
<div className={styles.selectWrap}>
104-
<select
105-
className={styles.select}
106-
value={notifyAdvance}
107-
onChange={e => setNotifyAdvance(Number(e.target.value))}
108-
>
109-
<option value={5}>5 хв</option>
110-
<option value={10}>10 хв</option>
111-
<option value={15}>15 хв</option>
112-
</select>
113-
<ChevronDown className={styles.selectIcon} size={18} />
103+
<div className={styles.advanceRow}>
104+
{[5, 10, 15].map(mins => (
105+
<button
106+
key={mins}
107+
className={`${styles.advanceBtn} ${notifyAdvance === mins ? styles.advanceBtnSelected : ''}`}
108+
onClick={() => setNotifyAdvance(mins)}
109+
>
110+
{mins} хв
111+
</button>
112+
))}
114113
</div>
115114
</div>
116115

0 commit comments

Comments
 (0)