diff --git a/src/components/common/SocialLoginDeprecation/index.tsx b/src/components/common/SocialLoginDeprecation/index.tsx index da8d9a9b38..4147386b40 100644 --- a/src/components/common/SocialLoginDeprecation/index.tsx +++ b/src/components/common/SocialLoginDeprecation/index.tsx @@ -18,7 +18,7 @@ const SocialLoginDeprecation = () => { } const settingsPage = { - pathname: AppRoutes.settings.securityLogin, + pathname: AppRoutes.settings.security, query: router.query, } diff --git a/src/components/common/WalletInfo/index.tsx b/src/components/common/WalletInfo/index.tsx index f083e57895..31c929be03 100644 --- a/src/components/common/WalletInfo/index.tsx +++ b/src/components/common/WalletInfo/index.tsx @@ -71,7 +71,7 @@ export const WalletInfo = ({ {socialWalletService && !socialWalletService.isMFAEnabled() && ( - + - )} - - - ) : ( - - Latest version - - ) - ) : null} - + + Update now to take advantage of new features and the highest security standards available. You will need to + confirm this update just like any other transaction.{' '} + GitHub + + + + {(isOk) => ( + + )} + + + )} ) } diff --git a/src/components/settings/RequiredConfirmations/index.tsx b/src/components/settings/RequiredConfirmations/index.tsx index 61db4d9900..2ccc9fc094 100644 --- a/src/components/settings/RequiredConfirmations/index.tsx +++ b/src/components/settings/RequiredConfirmations/index.tsx @@ -19,23 +19,22 @@ export const RequiredConfirmation = ({ threshold, owners }: { threshold: number; - Any transaction requires the confirmation of: - + Any transaction requires the confirmation of: + + {threshold} out of {owners} signers. {owners > 1 && ( - - - {(isOk) => ( - - - - )} - - + + {(isOk) => ( + + + + )} + )} diff --git a/src/components/settings/SafeModules/index.tsx b/src/components/settings/SafeModules/index.tsx index 88c85b9bea..204448ce3e 100644 --- a/src/components/settings/SafeModules/index.tsx +++ b/src/components/settings/SafeModules/index.tsx @@ -65,7 +65,7 @@ const SafeModules = () => { - Safe Account modules + Safe modules diff --git a/src/components/settings/SecurityLogin/index.tsx b/src/components/settings/SecurityLogin/index.tsx index 944df3bac7..6b921dc0c6 100644 --- a/src/components/settings/SecurityLogin/index.tsx +++ b/src/components/settings/SecurityLogin/index.tsx @@ -3,7 +3,6 @@ import SocialSignerMFA from './SocialSignerMFA' import SocialSignerExport from './SocialSignerExport' import useWallet from '@/hooks/wallets/useWallet' import { isSocialLoginWallet } from '@/services/mpc/SocialLoginModule' -import SpendingLimits from '../SpendingLimits' import dynamic from 'next/dynamic' import { useIsRecoverySupported } from '@/features/recovery/hooks/useIsRecoverySupported' import SecuritySettings from '../SecuritySettings' @@ -19,6 +18,8 @@ const SecurityLogin = () => { {isRecoverySupported && } + + {isSocialLogin && ( <> @@ -48,10 +49,6 @@ const SecurityLogin = () => { )} - - - - ) } diff --git a/src/components/sidebar/SidebarNavigation/config.tsx b/src/components/sidebar/SidebarNavigation/config.tsx index 27cc371aeb..6797127c73 100644 --- a/src/components/sidebar/SidebarNavigation/config.tsx +++ b/src/components/sidebar/SidebarNavigation/config.tsx @@ -90,8 +90,8 @@ export const settingsNavItems = [ href: AppRoutes.settings.appearance, }, { - label: 'Security & Login', - href: AppRoutes.settings.securityLogin, + label: 'Security', + href: AppRoutes.settings.security, }, { label: 'Notifications', @@ -129,8 +129,8 @@ export const generalSettingsNavItems = [ href: AppRoutes.settings.notifications, }, { - label: 'Security & Login', - href: AppRoutes.settings.securityLogin, + label: 'Security', + href: AppRoutes.settings.security, }, { label: 'Data', diff --git a/src/components/tx-flow/flows/SignMessage/SignMessage.tsx b/src/components/tx-flow/flows/SignMessage/SignMessage.tsx index e0aebcf1cb..f970b5d469 100644 --- a/src/components/tx-flow/flows/SignMessage/SignMessage.tsx +++ b/src/components/tx-flow/flows/SignMessage/SignMessage.tsx @@ -109,12 +109,12 @@ const MessageDialogError = ({ isOwner, submitError }: { isOwner: boolean; submit !wallet || !onboard ? 'No wallet is connected.' : !isOwner - ? "You are currently not a signer of this Safe Account and won't be able to confirm this message." - : submitError && isWalletRejection(submitError) - ? 'User rejected signing.' - : submitError - ? 'Error confirming the message. Please try again.' - : null + ? "You are currently not a signer of this Safe Account and won't be able to confirm this message." + : submitError && isWalletRejection(submitError) + ? 'User rejected signing.' + : submitError + ? 'Error confirming the message. Please try again.' + : null if (errorMessage) { return {errorMessage} @@ -166,7 +166,7 @@ const BlindSigningWarning = ({ return ( This request involves{' '} - + blind signing , which can lead to unpredictable outcomes. @@ -176,7 +176,7 @@ const BlindSigningWarning = ({ ) : ( <> If you wish to proceed, you must first{' '} - + enable blind signing . diff --git a/src/config/routes.ts b/src/config/routes.ts index 1c2a1ad022..314ddfda74 100644 --- a/src/config/routes.ts +++ b/src/config/routes.ts @@ -2,12 +2,12 @@ export const AppRoutes = { '404': '/404', wc: '/wc', terms: '/terms', + swap: '/swap', privacy: '/privacy', licenses: '/licenses', index: '/', imprint: '/imprint', home: '/home', - swap: '/swap', cookie: '/cookie', addressBook: '/address-book', addOwner: '/addOwner', @@ -28,7 +28,7 @@ export const AppRoutes = { }, settings: { setup: '/settings/setup', - securityLogin: '/settings/security-login', + security: '/settings/security', notifications: '/settings/notifications', modules: '/settings/modules', index: '/settings', diff --git a/src/pages/settings/security-login.tsx b/src/pages/settings/security.tsx similarity index 100% rename from src/pages/settings/security-login.tsx rename to src/pages/settings/security.tsx diff --git a/src/pages/settings/setup.tsx b/src/pages/settings/setup.tsx index 3229762803..92da73d9e2 100644 --- a/src/pages/settings/setup.tsx +++ b/src/pages/settings/setup.tsx @@ -8,6 +8,7 @@ import { RequiredConfirmation } from '@/components/settings/RequiredConfirmation import useSafeInfo from '@/hooks/useSafeInfo' import SettingsHeader from '@/components/settings/SettingsHeader' import DelegatesList from '@/components/settings/DelegatesList' +import SpendingLimits from '@/components/settings/SpendingLimits' const Setup: NextPage = () => { const { safe, safeLoaded } = useSafeInfo() @@ -57,12 +58,14 @@ const Setup: NextPage = () => { - + + +