@@ -19,7 +19,7 @@ import { setDebugEnabled } from '@/slices/settings';
1919
2020import { useApi } from '@/api/ApiHandler' ;
2121import type { DebugInfo } from '@/api/opendtuapi' ;
22- import { overrideInitialRoute , spacing } from '@/constants' ;
22+ import { spacing } from '@/constants' ;
2323import { useAppDispatch , useAppSelector } from '@/store' ;
2424import { StyledView } from '@/style' ;
2525import type { PropsWithNavigation } from '@/views/navigation/NavigationStack' ;
@@ -80,8 +80,7 @@ const DebugScreen: FC<PropsWithNavigation> = ({ navigation }) => {
8080 < StyledView theme = { theme } >
8181 < Box style = { { width : '100%' , flex : 1 } } >
8282 < ScrollView >
83- < List . Section >
84- < List . Subheader > { t ( 'debug.cache' ) } </ List . Subheader >
83+ < List . Section title = { t ( 'debug.cache' ) } >
8584 < List . Item
8685 title = { t ( 'debug.latestAppReleaseCacheCreated' ) }
8786 description = { `${
@@ -131,8 +130,7 @@ const DebugScreen: FC<PropsWithNavigation> = ({ navigation }) => {
131130 ) }
132131 />
133132 </ List . Section >
134- < List . Section >
135- < List . Subheader > { t ( 'debug.websocket' ) } </ List . Subheader >
133+ < List . Section title = { t ( 'debug.websocket' ) } >
136134 { apiDebugInfo
137135 ? Object . entries ( apiDebugInfo ) . map ( ( [ key , value ] ) => (
138136 < List . Item
@@ -143,8 +141,7 @@ const DebugScreen: FC<PropsWithNavigation> = ({ navigation }) => {
143141 ) )
144142 : null }
145143 </ List . Section >
146- < List . Section >
147- < List . Subheader > { t ( 'debug.other' ) } </ List . Subheader >
144+ < List . Section title = { t ( 'debug.other' ) } >
148145 < List . Item
149146 title = { t ( 'debug.disableDebugMode' ) }
150147 onPress = { handleDisableDebugMode }
@@ -156,8 +153,7 @@ const DebugScreen: FC<PropsWithNavigation> = ({ navigation }) => {
156153 left = { props => < List . Icon { ...props } icon = "palette" /> }
157154 />
158155 </ List . Section >
159- < List . Section >
160- < List . Subheader > App config</ List . Subheader >
156+ < List . Section title = "App config" >
161157 { Object . entries ( Config )
162158 . filter (
163159 ( [ , value ] ) => ! [ 'function' , 'symbol' ] . includes ( typeof value ) ,
@@ -178,8 +174,7 @@ const DebugScreen: FC<PropsWithNavigation> = ({ navigation }) => {
178174 />
179175 ) ) }
180176 </ List . Section >
181- < List . Section >
182- < List . Subheader > { t ( 'debug.toast' ) } </ List . Subheader >
177+ < List . Section title = { t ( 'debug.toast' ) } >
183178 < List . Item
184179 title = { t ( 'debug.showInfoToast' ) }
185180 onPress = { ( ) => {
0 commit comments