@@ -2,15 +2,13 @@ import { type ReactNode, SessionDataTestId, useMemo } from 'react';
2
2
import { useDispatch , useSelector } from 'react-redux' ;
3
3
import styled from 'styled-components' ;
4
4
5
- import { updateDeleteAccountModal } from '../../state/ducks/modalDialog' ;
6
5
import { sectionActions } from '../../state/ducks/section' ;
7
6
import { getFocusedSettingsSection } from '../../state/selectors/section' ;
8
7
import { useHideRecoveryPasswordEnabled } from '../../state/selectors/settings' ;
9
8
import type { SessionSettingCategory } from '../../types/ReduxTypes' ;
10
9
import { Flex } from '../basic/Flex' ;
11
10
import { SessionIcon , SessionIconType } from '../icon' ;
12
11
import { LeftPaneSectionHeader } from './LeftPaneSectionHeader' ;
13
- import { getSessionNetworkModalState } from '../../state/selectors/modal' ;
14
12
import { Localizer } from '../basic/Localizer' ;
15
13
import { tr } from '../../localization/localeTools' ;
16
14
import { LUCIDE_ICONS_UNICODE , type WithLucideUnicode } from '../icon/lucide' ;
@@ -111,12 +109,8 @@ const LeftPaneSettingsCategoryRow = ({ item }: { item: Categories }) => {
111
109
const { id, title, titleColor, icon, dataTestId, isNew } = item ;
112
110
const dispatch = useDispatch ( ) ;
113
111
const focusedSettingsSection = useSelector ( getFocusedSettingsSection ) ;
114
- const sessionNetworkModalState = useSelector ( getSessionNetworkModalState ) ;
115
112
116
- const isSelected = useMemo (
117
- ( ) => ( sessionNetworkModalState ? id === 'session-network' : focusedSettingsSection === id ) ,
118
- [ focusedSettingsSection , id , sessionNetworkModalState ]
119
- ) ;
113
+ const isSelected = useMemo ( ( ) => focusedSettingsSection === id , [ focusedSettingsSection , id ] ) ;
120
114
121
115
const iconSize = 'medium' ;
122
116
@@ -135,13 +129,6 @@ const LeftPaneSettingsCategoryRow = ({ item }: { item: Categories }) => {
135
129
switch ( id ) {
136
130
case 'message-requests' :
137
131
break ;
138
- case 'session-network' :
139
- // if the network modal is not open yet do an info request
140
-
141
- break ;
142
- case 'clear-data' :
143
- dispatch ( updateDeleteAccountModal ( { } ) ) ;
144
- break ;
145
132
default :
146
133
dispatch ( sectionActions . showSettingsSection ( id ) ) ;
147
134
}
0 commit comments