From 3b972e9de4497a3e40fb0b8d5a3d0cc45e63c535 Mon Sep 17 00:00:00 2001 From: Emosaddd Date: Wed, 6 May 2026 12:53:45 +0200 Subject: [PATCH] feat: fix logo dimensions and hide spaces --- .../dashboard/ExplorePossibleWidget/index.tsx | 7 ++++++- apps/web/src/components/welcome/NewSafe.tsx | 4 ++-- .../components/welcome/WelcomeLogin/index.tsx | 19 +------------------ .../src/components/welcome/styles.module.css | 4 +++- 4 files changed, 12 insertions(+), 22 deletions(-) diff --git a/apps/web/src/components/dashboard/ExplorePossibleWidget/index.tsx b/apps/web/src/components/dashboard/ExplorePossibleWidget/index.tsx index 8d44a6c1d9..89a2758d92 100644 --- a/apps/web/src/components/dashboard/ExplorePossibleWidget/index.tsx +++ b/apps/web/src/components/dashboard/ExplorePossibleWidget/index.tsx @@ -92,6 +92,7 @@ const ExplorePossibleWidget = () => { const router = useRouter() const txBuilderApp = useTxBuilderApp() const isDarkMode = useDarkMode() + const isSpacesEnabled = useHasFeature(FEATURES.SPACES) const isSwapEnabled = useHasFeature(FEATURES.NATIVE_SWAPS) const isEurcvBoostEnabled = useHasFeature(FEATURES.EURCV_BOOST) @@ -110,6 +111,10 @@ const ExplorePossibleWidget = () => { if (config.id === 'earn' && isEurcvBoostEnabled !== true) { return false } + // Filter out spaces (Manage multiple Safes) on forks or when chain has no Spaces feature + if (config.id === 'spaces' && isSpacesEnabled !== true) { + return false + } return true }).map((config) => ({ id: config.id, @@ -119,7 +124,7 @@ const ExplorePossibleWidget = () => { iconUrl: isDarkMode ? config.iconUrl.dark : config.iconUrl.light, link: config.getLink(router.query.safe, txBuilderApp.link), })), - [router.query.safe, txBuilderApp, isDarkMode, isSwapEnabled, isEurcvBoostEnabled], + [router.query.safe, txBuilderApp, isDarkMode, isSpacesEnabled, isSwapEnabled, isEurcvBoostEnabled], ) const updateScrollState = () => { diff --git a/apps/web/src/components/welcome/NewSafe.tsx b/apps/web/src/components/welcome/NewSafe.tsx index 733695294e..2d1d53bc89 100644 --- a/apps/web/src/components/welcome/NewSafe.tsx +++ b/apps/web/src/components/welcome/NewSafe.tsx @@ -2,7 +2,7 @@ import React from 'react' import { Typography } from '@mui/material' import css from './styles.module.css' import WelcomeLogin from './WelcomeLogin' -import SafeLabsLogo from '@/public/images/logo-safe-labs.svg' +import SafeLogo from '@/public/images/logo.svg' import footerCss from './welcomeFooter.module.css' import Footer from '../common/Footer' @@ -11,7 +11,7 @@ const NewSafe = () => {
- +
diff --git a/apps/web/src/components/welcome/WelcomeLogin/index.tsx b/apps/web/src/components/welcome/WelcomeLogin/index.tsx index d308120b15..031c048bb6 100644 --- a/apps/web/src/components/welcome/WelcomeLogin/index.tsx +++ b/apps/web/src/components/welcome/WelcomeLogin/index.tsx @@ -1,5 +1,5 @@ import { AppRoutes } from '@/config/routes' -import { Paper, Typography, Divider, Box, Link, Button, SvgIcon } from '@mui/material' +import { Paper, Typography, Divider, Box, Link, Button } from '@mui/material' import css from './styles.module.css' import { useRouter } from 'next/router' import { CREATE_SAFE_EVENTS } from '@/services/analytics/events/createLoadSafe' @@ -9,9 +9,6 @@ import { useHasSafes } from '@/features/myAccounts' import Track from '@/components/common/Track' import { useCallback, useEffect, useState } from 'react' import WalletLogin from './WalletLogin' -import NETWORK_CONFIG from '@/config/networkConfig' -import LicensedLogo from '@/public/images/logo-licensed.svg' -import SafeLogo from '@/public/images/logo-text.svg' const WelcomeLogin = () => { const router = useRouter() @@ -42,20 +39,6 @@ const WelcomeLogin = () => { return ( - {NETWORK_CONFIG.IS_LICENSED ? ( - - ) : ( - - )} - Get started diff --git a/apps/web/src/components/welcome/styles.module.css b/apps/web/src/components/welcome/styles.module.css index 3cfc842f75..a5f352ba63 100644 --- a/apps/web/src/components/welcome/styles.module.css +++ b/apps/web/src/components/welcome/styles.module.css @@ -38,6 +38,8 @@ .logo { color: #000; + height: 44px; + width: auto; } .rightContent { @@ -99,4 +101,4 @@ max-width: 100vw; margin-bottom: 79px; } -} +} \ No newline at end of file