feature/IO-3225-Notifications-1.5: Final Refactoring / Optimization

This commit is contained in:
Dave Richer
2025-05-06 14:19:22 -04:00
parent 8a8bc5a6ed
commit b539111be8
2 changed files with 8 additions and 10 deletions

View File

@@ -182,12 +182,13 @@ const NotificationSettingsForm = ({ currentUser }) => {
title={t("notifications.labels.notificationscenarios")}
extra={
<Space>
<Typography.Text type="secondary">{t("notifications.labels.auto-add")}</Typography.Text>
<Switch
checked={autoAddEnabled}
onChange={handleAutoAddToggle}
loading={savingAutoAdd}
checkedChildren={t("notifications.labels.auto-add-on")}
unCheckedChildren={t("notifications.labels.auto-add-off")}
// checkedChildren={t("notifications.labels.auto-add-on")}
// unCheckedChildren={t("notifications.labels.auto-add-off")}
/>
<Button type="default" onClick={handleReset} disabled={!isDirty && !isAutoAddDirty}>
{t("general.actions.clear")}
@@ -200,7 +201,6 @@ const NotificationSettingsForm = ({ currentUser }) => {
>
<Table dataSource={dataSource} columns={columns} pagination={false} bordered rowKey="key" />
<Divider />
<Typography.Paragraph type="secondary">{t("notifications.labels.auto-add-description")}</Typography.Paragraph>
</Card>
</Form>
);