Reduce final useAppSelector((s) => s.settings.X) to useSettings((s) => s.X) (#390)

This commit is contained in:
наб 2025-06-08 01:55:29 +02:00 committed by GitHub
parent 430a22fbf6
commit 8aad1bdf75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View file

@ -37,7 +37,6 @@ import {
} from "store/features/settingsSlice";
import {
useAppDispatch,
useAppSelector,
useNodes,
useSettings,
} from "store/hooks";
@ -329,7 +328,7 @@ function MoneroNodeUrlSetting() {
* A setting that allows you to select the theme of the GUI.
*/
function ThemeSetting() {
const theme = useAppSelector((s) => s.settings.theme);
const theme = useSettings((s) => s.theme);
const dispatch = useAppDispatch();
return (