Skip to content

Commit

Permalink
fix(ui): remove courses notifications settings (was disabled) (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
miky41195 authored Jan 30, 2025
1 parent b05171f commit b986316
Showing 1 changed file with 0 additions and 55 deletions.
55 changes: 0 additions & 55 deletions src/features/user/screens/NotificationsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ import { useTranslation } from 'react-i18next';
import { SafeAreaView, ScrollView } from 'react-native';

import {
faBullhorn,
faComments,
faFile,
faPersonCirclePlus,
faVideoCamera,
} from '@fortawesome/free-solid-svg-icons';
import { Col } from '@lib/ui/components/Col';
import { Icon } from '@lib/ui/components/Icon';
Expand All @@ -15,7 +12,6 @@ import { RefreshControl } from '@lib/ui/components/RefreshControl';
import { Section } from '@lib/ui/components/Section';
import { SectionHeader } from '@lib/ui/components/SectionHeader';
import { SwitchListItem } from '@lib/ui/components/SwitchListItem';
import { UnreadBadge } from '@lib/ui/components/UnreadBadge';
import { useTheme } from '@lib/ui/hooks/useTheme';

import { BottomBarSpacer } from '../../../core/components/BottomBarSpacer';
Expand Down Expand Up @@ -76,57 +72,6 @@ export const NotificationsScreen = () => {
/>
</OverviewList>
</Section>
<Section>
<SectionHeader
title={t('notificationsScreen.perCourseTitle')}
trailingItem={<UnreadBadge text={t('common.comingSoon')} />}
/>
<OverviewList indented loading={isLoading}>
<SwitchListItem
title={t('common.notice_plural')}
subtitle={t('coursePreferencesScreen.noticesSubtitle')}
disabled={true}
value={true}
leadingItem={<Icon icon={faBullhorn} size={fontSizes['2xl']} />}
onChange={() => {
/* updatePreference({
notificationType: 'notices',
targetValue: !data?.notices,
});*/
}}
/>

<SwitchListItem
title={t('common.file_plural')}
subtitle={t('coursePreferencesScreen.filesSubtitle')}
disabled={true}
value={true}
leadingItem={<Icon icon={faFile} size={fontSizes['2xl']} />}
onChange={() => {
/* updatePreference({
notificationType: 'files',
targetValue: !data?.files,
});*/
}}
/>

<SwitchListItem
title={t('common.lecture_plural')}
subtitle={t('coursePreferencesScreen.lecturesSubtitle')}
disabled={true}
value={true}
leadingItem={
<Icon icon={faVideoCamera} size={fontSizes['2xl']} />
}
onChange={() => {
/* updatePreference({
notificationType: 'lectures',
targetValue: !data?.lectures,
});*/
}}
/>
</OverviewList>
</Section>
</Col>
<BottomBarSpacer />
</SafeAreaView>
Expand Down

0 comments on commit b986316

Please sign in to comment.