+
+
+
+ {userInfo.name}
+
+
+ {userInfo.email}
+
+
+ {!hideActions && (
+
+
+
+
+
+
+ )}
+
+ )
+}
+
+export default SocialLoginInfo
diff --git a/src/components/common/SocialLoginInfo/styles.module.css b/src/components/common/SocialLoginInfo/styles.module.css
new file mode 100644
index 0000000000..6b694addb6
--- /dev/null
+++ b/src/components/common/SocialLoginInfo/styles.module.css
@@ -0,0 +1,23 @@
+.profileImg {
+ border-radius: var(--space-2);
+ width: 32px;
+ height: 32px;
+}
+
+.profileData {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 2px;
+}
+
+.text {
+ font-size: 12px;
+ line-height: 14px;
+}
+
+.actionButtons {
+ display: flex;
+ justify-self: flex-end;
+ margin-left: auto;
+}
diff --git a/src/components/welcome/WelcomeLogin/WalletLogin.tsx b/src/components/welcome/WelcomeLogin/WalletLogin.tsx
index 758a3b23c7..451bf5d502 100644
--- a/src/components/welcome/WelcomeLogin/WalletLogin.tsx
+++ b/src/components/welcome/WelcomeLogin/WalletLogin.tsx
@@ -3,26 +3,16 @@ import useWallet from '@/hooks/wallets/useWallet'
import { ONBOARD_MPC_MODULE_LABEL } from '@/services/mpc/module'
import { Box, Button, Typography } from '@mui/material'
import { EthHashInfo } from '@safe-global/safe-react-components'
-import { useState, useEffect } from 'react'
-const WalletLogin = ({ onLogin }: { onLogin?: () => void }) => {
+const WalletLogin = ({ onLogin }: { onLogin: () => void }) => {
const wallet = useWallet()
const connectWallet = useConnectWallet()
- const [loginTriggered, setLoginTriggered] = useState(false)
-
const login = async () => {
- setLoginTriggered(true)
await connectWallet()
+ onLogin()
}
- // If login was triggered through the Button we immediately continue if logged in
- useEffect(() => {
- if (loginTriggered && wallet && onLogin) {
- onLogin()
- }
- }, [loginTriggered, onLogin, wallet])
-
if (wallet !== null && wallet?.label !== ONBOARD_MPC_MODULE_LABEL) {
return (