diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-06 23:24:41 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-06 23:24:41 -0700 |
commit | 145642f1eaf01d5809dabd79e7f64f234124683e (patch) | |
tree | 943ce73af2cc77d86bb857e6e5b4d0f0ff49a408 /extension/react-app | |
parent | c548c7fa2ff5052c35a37547cdc05a406fc22deb (diff) | |
download | sncontinue-145642f1eaf01d5809dabd79e7f64f234124683e.tar.gz sncontinue-145642f1eaf01d5809dabd79e7f64f234124683e.tar.bz2 sncontinue-145642f1eaf01d5809dabd79e7f64f234124683e.zip |
fix: :bug: clear all other selector destrucuring
Diffstat (limited to 'extension/react-app')
-rw-r--r-- | extension/react-app/src/components/Layout.tsx | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/extension/react-app/src/components/Layout.tsx b/extension/react-app/src/components/Layout.tsx index 30cb5df2..a2e54173 100644 --- a/extension/react-app/src/components/Layout.tsx +++ b/extension/react-app/src/components/Layout.tsx @@ -67,8 +67,14 @@ const Layout = () => { const navigate = useNavigate(); const client = useContext(GUIClientContext); const dispatch = useDispatch(); - const { showDialog, dialogEntryOn, dialogMessage } = useSelector( - (state: RootStore) => state.uiState + const dialogMessage = useSelector( + (state: RootStore) => state.uiState.dialogMessage + ); + const showDialog = useSelector( + (state: RootStore) => state.uiState.showDialog + ); + const dialogEntryOn = useSelector( + (state: RootStore) => state.uiState.dialogEntryOn ); // #region Selectors @@ -76,8 +82,11 @@ const Layout = () => { (state: RootStore) => state.config.vscMediaUrl ); - const { bottomMessage, displayBottomMessageOnBottom } = useSelector( - (state: RootStore) => state.uiState + const bottomMessage = useSelector( + (state: RootStore) => state.uiState.bottomMessage + ); + const displayBottomMessageOnBottom = useSelector( + (state: RootStore) => state.uiState.displayBottomMessageOnBottom ); // #endregion |