1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

notifications: show toggle button on list if notifications disabled

This commit is contained in:
Fedor Katurov 2023-03-16 14:22:52 +06:00
parent f9e0ecdd0c
commit 14bf5be65f
8 changed files with 52 additions and 31 deletions

View file

@ -5,4 +5,5 @@
grid-template-columns: 1fr auto;
row-gap: $gap;
align-items: center;
font: $font_14_medium;
}

View file

@ -51,26 +51,18 @@ const NotificationSettingsForm: FC<NotificationSettingsFormProps> = ({
return (
<Group>
<Card>
<InputRow className={styles.row} input={toggle('enabled')}>
Получать уведомления
</InputRow>
<InputRow input={toggle('enabled')}>Получать уведомления</InputRow>
</Card>
<div />
<Zone title="Типы уведомлений">
<Group>
<InputRow
className={styles.row}
input={toggle('flow', !values.enabled)}
>
<InputRow input={toggle('flow', !values.enabled)}>
Новые посты
</InputRow>
<InputRow
className={styles.row}
input={toggle('comments', !values.enabled)}
>
<InputRow input={toggle('comments', !values.enabled)}>
Комментарии
</InputRow>
</Group>
@ -80,16 +72,11 @@ const NotificationSettingsForm: FC<NotificationSettingsFormProps> = ({
<Zone title="Способы доставки">
<Group>
<InputRow
className={styles.row}
input={toggle('showIndicator', !values.enabled)}
>
<InputRow input={toggle('showIndicator', !values.enabled)}>
На иконке профиля
</InputRow>
<InputRow className={styles.row} input={telegramInput}>
Телеграм
</InputRow>
<InputRow input={telegramInput}>Телеграм</InputRow>
</Group>
</Zone>
</Group>

View file

@ -5,7 +5,3 @@
grid-auto-flow: row;
row-gap: $gap;
}
.row {
font: $font_14_regular;
}