From 44a1a2af13482c437256bced0627184c790b4ded Mon Sep 17 00:00:00 2001 From: JSoufer Date: Fri, 16 Aug 2024 15:11:55 +0100 Subject: [PATCH] flag SnapWebview to not load if basic functionality isn't ON --- app/components/Nav/App/index.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/components/Nav/App/index.js b/app/components/Nav/App/index.js index 52b8b5d1f7f..f8ff3568058 100644 --- a/app/components/Nav/App/index.js +++ b/app/components/Nav/App/index.js @@ -304,7 +304,7 @@ const VaultRecoveryFlow = () => ( ); // eslint-disable-next-line react/prop-types -const App = ({ userLoggedIn }) => { +const App = ({ userLoggedIn, isBasicFunctionalityEnabled }) => { const animationRef = useRef(null); const animationNameRef = useRef(null); const opacity = useRef(new Animated.Value(1)).current; @@ -811,9 +811,11 @@ const App = ({ userLoggedIn }) => { { ///: BEGIN:ONLY_INCLUDE_IF(preinstalled-snaps,external-snaps) } - - - + {isBasicFunctionalityEnabled && ( + + + + )} { ///: END:ONLY_INCLUDE_IF } @@ -950,6 +952,7 @@ const App = ({ userLoggedIn }) => { const mapStateToProps = (state) => ({ userLoggedIn: state.user.userLoggedIn, + isBasicFunctionalityEnabled: state.settings?.basicFunctionalityEnabled, }); export default connect(mapStateToProps)(App);