diff options
author | 2023-12-07 22:37:37 -0700 | |
---|---|---|
committer | 2023-12-07 22:37:37 -0700 | |
commit | a774c879d4cf08a76fc404771883807d27465265 (patch) | |
tree | 202c9afdeb4830d417e0ec7137a01e7981c8651c /src/containers | |
parent | 6.6.1-nightly.17 [skip ci] (diff) | |
download | ferdium-app-a774c879d4cf08a76fc404771883807d27465265.tar.gz ferdium-app-a774c879d4cf08a76fc404771883807d27465265.tar.zst ferdium-app-a774c879d4cf08a76fc404771883807d27465265.zip |
refactor: code cleanup (#1476)
- auto update `settings.json` due to new vscode version
- replace deprecated `e.keyCode` with `e.key`
- fix various code snippets with sonarlint and other lint plugins
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/settings/EditServiceScreen.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/containers/settings/EditServiceScreen.tsx b/src/containers/settings/EditServiceScreen.tsx index ff2076fed..946ec09d3 100644 --- a/src/containers/settings/EditServiceScreen.tsx +++ b/src/containers/settings/EditServiceScreen.tsx | |||
@@ -261,7 +261,7 @@ class EditServiceScreen extends Component<IProps> { | |||
261 | }, | 261 | }, |
262 | customIcon: { | 262 | customIcon: { |
263 | label: intl.formatMessage(messages.icon), | 263 | label: intl.formatMessage(messages.icon), |
264 | value: service?.hasCustomUploadedIcon ? service?.icon : null, | 264 | value: service?.hasCustomUploadedIcon ? service.icon : null, |
265 | type: 'file', | 265 | type: 'file', |
266 | }, | 266 | }, |
267 | isDarkModeEnabled: { | 267 | isDarkModeEnabled: { |
@@ -276,21 +276,21 @@ class EditServiceScreen extends Component<IProps> { | |||
276 | darkReaderBrightness: { | 276 | darkReaderBrightness: { |
277 | label: intl.formatMessage(messages.darkReaderBrightness), | 277 | label: intl.formatMessage(messages.darkReaderBrightness), |
278 | value: service?.darkReaderSettings | 278 | value: service?.darkReaderSettings |
279 | ? service?.darkReaderSettings.brightness | 279 | ? service.darkReaderSettings.brightness |
280 | : DEFAULT_SERVICE_SETTINGS.darkReaderBrightness, | 280 | : DEFAULT_SERVICE_SETTINGS.darkReaderBrightness, |
281 | default: DEFAULT_SERVICE_SETTINGS.darkReaderBrightness, | 281 | default: DEFAULT_SERVICE_SETTINGS.darkReaderBrightness, |
282 | }, | 282 | }, |
283 | darkReaderContrast: { | 283 | darkReaderContrast: { |
284 | label: intl.formatMessage(messages.darkReaderContrast), | 284 | label: intl.formatMessage(messages.darkReaderContrast), |
285 | value: service?.darkReaderSettings | 285 | value: service?.darkReaderSettings |
286 | ? service?.darkReaderSettings.contrast | 286 | ? service.darkReaderSettings.contrast |
287 | : DEFAULT_SERVICE_SETTINGS.darkReaderContrast, | 287 | : DEFAULT_SERVICE_SETTINGS.darkReaderContrast, |
288 | default: DEFAULT_SERVICE_SETTINGS.darkReaderContrast, | 288 | default: DEFAULT_SERVICE_SETTINGS.darkReaderContrast, |
289 | }, | 289 | }, |
290 | darkReaderSepia: { | 290 | darkReaderSepia: { |
291 | label: intl.formatMessage(messages.darkReaderSepia), | 291 | label: intl.formatMessage(messages.darkReaderSepia), |
292 | value: service?.darkReaderSettings | 292 | value: service?.darkReaderSettings |
293 | ? service?.darkReaderSettings.sepia | 293 | ? service.darkReaderSettings.sepia |
294 | : DEFAULT_SERVICE_SETTINGS.darkReaderSepia, | 294 | : DEFAULT_SERVICE_SETTINGS.darkReaderSepia, |
295 | default: DEFAULT_SERVICE_SETTINGS.darkReaderSepia, | 295 | default: DEFAULT_SERVICE_SETTINGS.darkReaderSepia, |
296 | }, | 296 | }, |