Skip to content

Commit 24113f1

Browse files
authored
refactor: remove update preferences from notifications tab (#326)
1 parent 5c07f68 commit 24113f1

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

view/app/settings/notifications/components/preferenceTab.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ import { useTranslation } from '@/hooks/use-translation';
77
interface NotificationPreferencesTabProps {
88
activityPreferences?: PreferenceType[];
99
securityPreferences?: PreferenceType[];
10-
updatePreferences?: PreferenceType[];
1110
onUpdatePreference: (id: string, enabled: boolean) => void;
1211
}
1312

1413
export const NotificationPreferencesTab: React.FC<NotificationPreferencesTabProps> = ({
1514
activityPreferences,
1615
securityPreferences,
17-
updatePreferences,
1816
onUpdatePreference
1917
}) => {
2018
const { t } = useTranslation();
@@ -34,13 +32,6 @@ export const NotificationPreferencesTab: React.FC<NotificationPreferencesTabProp
3432
preferences={securityPreferences}
3533
onUpdate={onUpdatePreference}
3634
/>
37-
38-
<NotificationPreferenceCard
39-
title={t('settings.notifications.preferences.updates.title')}
40-
description={t('settings.notifications.preferences.updates.description')}
41-
preferences={updatePreferences}
42-
onUpdate={onUpdatePreference}
43-
/>
4435
</div>
4536
);
4637
};

view/app/settings/notifications/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ const Page: React.FC = () => {
121121
<NotificationPreferencesTab
122122
activityPreferences={preferences?.activity}
123123
securityPreferences={preferences?.security}
124-
updatePreferences={preferences?.update}
125124
onUpdatePreference={handleUpdate}
126125
/>
127126
</TabsContent>

0 commit comments

Comments
 (0)