diff --git a/next.config.mjs b/next.config.mjs index b23c212339..89ff2ae2f5 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -77,6 +77,7 @@ const nextConfig = { ...config.resolve.alias, 'bn.js': path.resolve('./node_modules/bn.js/lib/bn.js'), 'mainnet.json': path.resolve('./node_modules/@ethereumjs/common/dist.browser/genesisStates/mainnet.json'), + '@mui/material$': path.resolve('./src/components/common/Mui'), } if (dev) { diff --git a/src/components/address-book/AddressBookTable/index.tsx b/src/components/address-book/AddressBookTable/index.tsx index 6d0263e5ab..f1ee73aeec 100644 --- a/src/components/address-book/AddressBookTable/index.tsx +++ b/src/components/address-book/AddressBookTable/index.tsx @@ -145,16 +145,12 @@ function AddressBookTable({ chain, setTxFlow }: AddressBookTableProps) { searchQuery={searchQuery} onSearchQueryChange={setSearchQuery} /> +
{filteredEntries.length > 0 ? ( ) : ( - + } text={`No entries found${chain ? ` on ${chain.chainName}` : ''}`} @@ -162,8 +158,11 @@ function AddressBookTable({ chain, setTxFlow }: AddressBookTableProps) { )}
+ {open[ModalType.EXPORT] && } + {open[ModalType.IMPORT] && } + {open[ModalType.ENTRY] && ( )} + {open[ModalType.REMOVE] && } ) diff --git a/src/components/address-book/EntryDialog/index.tsx b/src/components/address-book/EntryDialog/index.tsx index e22428fd54..0d3ceb9852 100644 --- a/src/components/address-book/EntryDialog/index.tsx +++ b/src/components/address-book/EntryDialog/index.tsx @@ -61,11 +61,7 @@ function EntryDialog({
- + diff --git a/src/components/address-book/ExportDialog/index.tsx b/src/components/address-book/ExportDialog/index.tsx index 9f089812de..15256feaae 100644 --- a/src/components/address-book/ExportDialog/index.tsx +++ b/src/components/address-book/ExportDialog/index.tsx @@ -71,11 +71,7 @@ function ExportDialog({ . - + + diff --git a/src/components/balances/AssetsTable/index.tsx b/src/components/balances/AssetsTable/index.tsx index 7b1a06f41b..077bfed573 100644 --- a/src/components/balances/AssetsTable/index.tsx +++ b/src/components/balances/AssetsTable/index.tsx @@ -157,11 +157,7 @@ const AssetsTable = ({ rawValue: rawFiatValue, collapsed: item.tokenInfo.address === hidingAsset, content: ( - + {rawFiatValue === 0 && ( @@ -189,14 +185,7 @@ const AssetsTable = ({ sticky: true, collapsed: item.tokenInfo.address === hidingAsset, content: ( - + <> diff --git a/src/components/balances/HiddenTokenButton/index.tsx b/src/components/balances/HiddenTokenButton/index.tsx index e9a4ec09f8..df9593c361 100644 --- a/src/components/balances/HiddenTokenButton/index.tsx +++ b/src/components/balances/HiddenTokenButton/index.tsx @@ -39,11 +39,7 @@ const HiddenTokenButton = ({ > <> - + {hiddenAssetCount === 0 ? 'Hide tokens' : `${hiddenAssetCount} hidden token${maybePlural(hiddenAssetCount)}`}{' '} diff --git a/src/components/balances/TokenListSelect/index.tsx b/src/components/balances/TokenListSelect/index.tsx index beb7111e54..e300bc4e16 100644 --- a/src/components/balances/TokenListSelect/index.tsx +++ b/src/components/balances/TokenListSelect/index.tsx @@ -35,6 +35,7 @@ const TokenListSelect = () => { return ( Token list + { > - + {TokenListLabel.TRUSTED} - + {selectedAssetCount} {selectedAssetCount === 1 ? 'token' : 'tokens'} selected - + diff --git a/src/components/new-safe/create/steps/StatusStep/StatusMessage.tsx b/src/components/new-safe/create/steps/StatusStep/StatusMessage.tsx index ee8d0eea2c..bf681f515d 100644 --- a/src/components/new-safe/create/steps/StatusStep/StatusMessage.tsx +++ b/src/components/new-safe/create/steps/StatusStep/StatusMessage.tsx @@ -63,46 +63,17 @@ const StatusMessage = ({ return ( <> - - + + {isError ? : } - + {stepInfo.description} - + {stepInfo.instruction && ( - + {stepInfo.instruction} )} diff --git a/src/components/new-safe/create/steps/StatusStep/StatusStep.tsx b/src/components/new-safe/create/steps/StatusStep/StatusStep.tsx index c05b4ca778..56c2df1994 100644 --- a/src/components/new-safe/create/steps/StatusStep/StatusStep.tsx +++ b/src/components/new-safe/create/steps/StatusStep/StatusStep.tsx @@ -23,18 +23,13 @@ const StatusStep = ({ icon={} > (isLoading ? palette.border.main : palette.text.primary), - }} + display="flex" + alignItems="center" + gap={2} + color={color} + sx={{ color: ({ palette }) => (isLoading ? palette.border.main : palette.text.primary) }} > - + {safeAddress && !isLoading ? ( ) : ( diff --git a/src/components/new-safe/load/steps/SafeOwnerStep/index.tsx b/src/components/new-safe/load/steps/SafeOwnerStep/index.tsx index a030ba42c2..c59bcbb332 100644 --- a/src/components/new-safe/load/steps/SafeOwnerStep/index.tsx +++ b/src/components/new-safe/load/steps/SafeOwnerStep/index.tsx @@ -74,14 +74,7 @@ const SafeOwnerStep = ({ data, onSubmit, onBack }: StepRenderProps - + diff --git a/src/components/new-safe/load/steps/SafeReviewStep/index.tsx b/src/components/new-safe/load/steps/SafeReviewStep/index.tsx index d613360304..cd44eb6d41 100644 --- a/src/components/new-safe/load/steps/SafeReviewStep/index.tsx +++ b/src/components/new-safe/load/steps/SafeReviewStep/index.tsx @@ -127,14 +127,7 @@ const SafeReviewStep = ({ data, onBack }: StepRenderProps) => - + diff --git a/src/components/nfts/NftCollections/index.tsx b/src/components/nfts/NftCollections/index.tsx index 02875bcf1a..262691e0f7 100644 --- a/src/components/nfts/NftCollections/index.tsx +++ b/src/components/nfts/NftCollections/index.tsx @@ -70,6 +70,7 @@ const NftCollections = (): ReactElement => { {/* Batch send form */} + {/* NFTs table */} { )} + {/* NFT preview */} setPreviewNft(undefined)} nft={previewNft} /> diff --git a/src/components/nfts/NftGrid/index.tsx b/src/components/nfts/NftGrid/index.tsx index c44fc71bab..e35662b966 100644 --- a/src/components/nfts/NftGrid/index.tsx +++ b/src/components/nfts/NftGrid/index.tsx @@ -152,14 +152,7 @@ const NftGrid = ({ }} > {headCell.id === 'collection' ? ( - + {/* Collection name */} - + {item.imageUri ? activeNftIcon : inactiveNftIcon}
{item.tokenName || item.tokenSymbol} - + + {/* Token ID */} {item.name || `${item.tokenSymbol} #${item.id.slice(0, 20)}`} + {/* Links */} - + {linkTemplates?.map(({ title, logo, getUrl }) => ( {title} @@ -262,6 +238,7 @@ const NftGrid = ({ ))} + {/* Checkbox */} - + ))} diff --git a/src/components/notification-center/NotificationCenter/index.tsx b/src/components/notification-center/NotificationCenter/index.tsx index dd28e56d9c..bd7c47371e 100644 --- a/src/components/notification-center/NotificationCenter/index.tsx +++ b/src/components/notification-center/NotificationCenter/index.tsx @@ -108,6 +108,7 @@ const NotificationCenter = (): ReactElement => { + {
- + Notifications {hasUnread && ( diff --git a/src/components/safe-apps/AddCustomAppModal/CustomApp.tsx b/src/components/safe-apps/AddCustomAppModal/CustomApp.tsx index fddf7cb567..6247f0f3b7 100644 --- a/src/components/safe-apps/AddCustomAppModal/CustomApp.tsx +++ b/src/components/safe-apps/AddCustomAppModal/CustomApp.tsx @@ -22,25 +22,15 @@ const CustomApp = ({ safeApp, shareUrl }: CustomAppProps) => { return (
- + + {safeApp.name} - + + {safeApp.description} + {shareUrl ? ( { return ( <> - + {/* Add Custom Safe App Icon */} @@ -39,6 +32,7 @@ const AddCustomSafeAppCard = ({ onSave, safeAppList }: Props) => { + {/* Add Custom Safe App Modal */} - + {barTitle} @@ -88,13 +81,7 @@ const TransactionQueueBar = ({ - + diff --git a/src/components/safe-apps/AppFrame/index.tsx b/src/components/safe-apps/AppFrame/index.tsx index 7e10c614cf..bfdd84f0a8 100644 --- a/src/components/safe-apps/AppFrame/index.tsx +++ b/src/components/safe-apps/AppFrame/index.tsx @@ -117,11 +117,7 @@ const AppFrame = ({ appUrl, allowedFeaturesList, safeAppFromManifest, isNativeEm {`Safe Apps - Viewer - ${remoteApp ? remoteApp.name : UNKNOWN_APP_NAME}`} - + diff --git a/src/components/safe-apps/PermissionsPrompt.tsx b/src/components/safe-apps/PermissionsPrompt.tsx index 468e2bfe23..117476d8de 100644 --- a/src/components/safe-apps/PermissionsPrompt.tsx +++ b/src/components/safe-apps/PermissionsPrompt.tsx @@ -25,12 +25,7 @@ const PermissionsPrompt = ({ return ( onReject()}> - + Permissions Request diff --git a/src/components/safe-apps/RemoveCustomAppModal.tsx b/src/components/safe-apps/RemoveCustomAppModal.tsx index 35c87d5f43..74c8356396 100644 --- a/src/components/safe-apps/RemoveCustomAppModal.tsx +++ b/src/components/safe-apps/RemoveCustomAppModal.tsx @@ -13,12 +13,7 @@ type Props = { const RemoveCustomAppModal = ({ open, onClose, onConfirm, app }: Props) => ( - + Are you sure you want to remove the {app.name} app? diff --git a/src/components/safe-apps/SafeAppActionButtons/index.tsx b/src/components/safe-apps/SafeAppActionButtons/index.tsx index 190105f42b..40fd557ec5 100644 --- a/src/components/safe-apps/SafeAppActionButtons/index.tsx +++ b/src/components/safe-apps/SafeAppActionButtons/index.tsx @@ -37,13 +37,7 @@ const SafeAppActionButtons = ({ } return ( - + {/* Open the preview drawer */} {openPreviewDrawer && ( )} + {/* Copy share Safe App url button */} + {/* Bookmark Safe App button */} {onBookmarkSafeApp && ( @@ -87,6 +83,7 @@ const SafeAppActionButtons = ({ )} + {/* Remove Custom Safe App button */} {removeCustomApp && ( diff --git a/src/components/safe-apps/SafeAppCard/index.tsx b/src/components/safe-apps/SafeAppCard/index.tsx index 65419d9e3a..35876a469c 100644 --- a/src/components/safe-apps/SafeAppCard/index.tsx +++ b/src/components/safe-apps/SafeAppCard/index.tsx @@ -112,6 +112,7 @@ const SafeAppCardGridView = ({ } /> + {/* Safe App Title */} @@ -119,13 +120,7 @@ const SafeAppCardGridView = ({ {/* Safe App Description */} - + {safeApp.description} diff --git a/src/components/safe-apps/SafeAppLandingPage/SafeAppDetails.tsx b/src/components/safe-apps/SafeAppLandingPage/SafeAppDetails.tsx index 3e4b8320f9..225c4563d6 100644 --- a/src/components/safe-apps/SafeAppLandingPage/SafeAppDetails.tsx +++ b/src/components/safe-apps/SafeAppLandingPage/SafeAppDetails.tsx @@ -18,20 +18,10 @@ const SafeAppDetails = ({ app, showDefaultListWarning }: DetailsProps) => ( - + {app.name} - + {app.description} @@ -41,18 +31,14 @@ const SafeAppDetails = ({ app, showDefaultListWarning }: DetailsProps) => ( Safe App URL ({ - mt: 1, - p: 1, - backgroundColor: palette.primary.background, - display: 'inline-block', - borderRadius: shape.borderRadius, - }), - ]} + sx={({ palette, shape }) => ({ + mt: 1, + p: 1, + backgroundColor: palette.primary.background, + display: 'inline-block', + borderRadius: shape.borderRadius, + fontWeight: 700, + })} > {app.url} @@ -77,23 +63,10 @@ const SafeAppDetails = ({ app, showDefaultListWarning }: DetailsProps) => ( Warning - ({ color: palette.warning.dark }), - ]} - > + ({ color: palette.warning.dark })}> The application is not in the default Safe App list - + Check the app link and ensure it comes from a trusted source diff --git a/src/components/safe-apps/SafeAppLandingPage/TryDemo.tsx b/src/components/safe-apps/SafeAppLandingPage/TryDemo.tsx index 755aee5552..3266a4237c 100644 --- a/src/components/safe-apps/SafeAppLandingPage/TryDemo.tsx +++ b/src/components/safe-apps/SafeAppLandingPage/TryDemo.tsx @@ -10,21 +10,8 @@ type Props = { } const TryDemo = ({ demoUrl, onClick }: Props) => ( - - + + Try the Safe App before using it diff --git a/src/components/safe-apps/SafeAppPreviewDrawer/index.tsx b/src/components/safe-apps/SafeAppPreviewDrawer/index.tsx index a8526a902b..442d239e16 100644 --- a/src/components/safe-apps/SafeAppPreviewDrawer/index.tsx +++ b/src/components/safe-apps/SafeAppPreviewDrawer/index.tsx @@ -46,12 +46,7 @@ const SafeAppPreviewDrawer = ({ isOpen, safeApp, isBookmarked, onClose, onBookma {/* Toolbar */} {safeApp && ( - + - + {safeApp?.name} - + {safeApp?.description} @@ -97,13 +80,7 @@ const SafeAppPreviewDrawer = ({ isOpen, safeApp, isBookmarked, onClose, onBookma {/* Networks */} - + Available networks diff --git a/src/components/safe-apps/SafeAppSocialLinksCard/index.tsx b/src/components/safe-apps/SafeAppSocialLinksCard/index.tsx index 63aaf89e9c..36dea9290d 100644 --- a/src/components/safe-apps/SafeAppSocialLinksCard/index.tsx +++ b/src/components/safe-apps/SafeAppSocialLinksCard/index.tsx @@ -33,64 +33,30 @@ const SafeAppSocialLinksCard = ({ safeApp }: SafeAppSocialLinksCardProps) => { return ( - + {/* Team Link section */}
- + Something wrong with the Safe App? - + Get in touch with the team
- + + {/* Social links section */} {hasSocialLinks && (
- + Social Media - + {discordSocialLink && ( @@ -124,18 +90,8 @@ const SafeAppSocialLinksCard = ({ safeApp }: SafeAppSocialLinksCardProps) => { {/* Developer website section */} {developerWebsite && ( - - + + Website diff --git a/src/components/safe-apps/SafeAppsFilters/index.tsx b/src/components/safe-apps/SafeAppsFilters/index.tsx index 57fdf4e379..eec8c8b492 100644 --- a/src/components/safe-apps/SafeAppsFilters/index.tsx +++ b/src/components/safe-apps/SafeAppsFilters/index.tsx @@ -73,6 +73,7 @@ const SafeAppsFilters = ({ }} /> + {/* Select Category */} @@ -142,6 +143,7 @@ const SafeAppsFilters = ({ )} + {/* Optimized with Batch Transaction */} + Batch transactions } diff --git a/src/components/safe-apps/SafeAppsInfoModal/AllowedFeaturesList.tsx b/src/components/safe-apps/SafeAppsInfoModal/AllowedFeaturesList.tsx index 15f8eaa5a9..5896697320 100644 --- a/src/components/safe-apps/SafeAppsInfoModal/AllowedFeaturesList.tsx +++ b/src/components/safe-apps/SafeAppsInfoModal/AllowedFeaturesList.tsx @@ -19,33 +19,22 @@ const AllowedFeaturesList: React.FC = ({ return ( <> + Manage the features Safe Apps can use - + + This Safe App is requesting permission to use: - + {features .filter(({ feature }) => isBrowserFeature(feature)) .map(({ feature, checked }, index) => ( diff --git a/src/components/safe-apps/SafeAppsInfoModal/Slider.tsx b/src/components/safe-apps/SafeAppsInfoModal/Slider.tsx index baa7284092..d94d9b818f 100644 --- a/src/components/safe-apps/SafeAppsInfoModal/Slider.tsx +++ b/src/components/safe-apps/SafeAppsInfoModal/Slider.tsx @@ -68,13 +68,7 @@ const Slider: React.FC = ({ onSlideChange, children, initialStep }) ))}
- + diff --git a/src/components/safe-apps/SafeAppsZeroResultsPlaceholder/index.tsx b/src/components/safe-apps/SafeAppsZeroResultsPlaceholder/index.tsx index 43d453ba8b..bd3b411c78 100644 --- a/src/components/safe-apps/SafeAppsZeroResultsPlaceholder/index.tsx +++ b/src/components/safe-apps/SafeAppsZeroResultsPlaceholder/index.tsx @@ -7,14 +7,7 @@ const SafeAppsZeroResultsPlaceholder = ({ searchQuery }: { searchQuery: string } } text={ - + No Safe Apps found matching {searchQuery}. Connect to dApps that haven't yet been integrated with the {'Safe{Wallet}'} using WalletConnect. diff --git a/src/components/safe-messages/DecodedMsg/index.tsx b/src/components/safe-messages/DecodedMsg/index.tsx index 3c42e14edd..dbb4303ac5 100644 --- a/src/components/safe-messages/DecodedMsg/index.tsx +++ b/src/components/safe-messages/DecodedMsg/index.tsx @@ -20,17 +20,14 @@ const DecodedTypedObject = ({ displayedType, eip712Msg }: { displayedType: strin return ( ({ color: `${palette.border.main}` }), - ]} + sx={({ palette }) => ({ color: `${palette.border.main}` })} > {displayedType} + {Object.entries(displayedType === EIP712_DOMAIN_TYPE ? domain : msg).map((param, index) => { const [paramName, paramValue] = param const type = findType(paramName) || 'string' diff --git a/src/components/safe-messages/InfoBox/index.tsx b/src/components/safe-messages/InfoBox/index.tsx index 4360710192..34bdff369f 100644 --- a/src/components/safe-messages/InfoBox/index.tsx +++ b/src/components/safe-messages/InfoBox/index.tsx @@ -20,12 +20,7 @@ const InfoBox = ({
- + {title} {message} diff --git a/src/components/safe-messages/MsgDetails/index.tsx b/src/components/safe-messages/MsgDetails/index.tsx index b98b56f157..db757ba5b9 100644 --- a/src/components/safe-messages/MsgDetails/index.tsx +++ b/src/components/safe-messages/MsgDetails/index.tsx @@ -125,15 +125,7 @@ const MsgDetails = ({ msg }: { msg: SafeMessage }): ReactElement => {
{wallet && !isConfirmed && ( - + )} diff --git a/src/components/settings/ContractVersion/index.tsx b/src/components/settings/ContractVersion/index.tsx index 935192a9bd..151548f3dc 100644 --- a/src/components/settings/ContractVersion/index.tsx +++ b/src/components/settings/ContractVersion/index.tsx @@ -33,23 +33,11 @@ export const ContractVersion = () => { return ( <> - + Contract version - + + {safeLoaded ? ( <> {safe.version ?? 'Unsupported contract'} @@ -63,6 +51,7 @@ export const ContractVersion = () => { )} + {safeLoaded && safe.version && showUpdateDialog && ( { > New version is available: {latestSafeVersion} - + 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 diff --git a/src/components/settings/DataManagement/ImportDialog.tsx b/src/components/settings/DataManagement/ImportDialog.tsx index 5b4f0ed385..b6668e5c71 100644 --- a/src/components/settings/DataManagement/ImportDialog.tsx +++ b/src/components/settings/DataManagement/ImportDialog.tsx @@ -88,11 +88,7 @@ export const ImportDialog = ({ {!jsonData || !fileName ? ( - + ) : ( diff --git a/src/components/settings/DataManagement/index.tsx b/src/components/settings/DataManagement/index.tsx index a5c8b2bd1e..f753c119b2 100644 --- a/src/components/settings/DataManagement/index.tsx +++ b/src/components/settings/DataManagement/index.tsx @@ -74,12 +74,7 @@ const DataManagement = () => { - + Data export @@ -110,15 +105,11 @@ const DataManagement = () => { + - + Data import diff --git a/src/components/settings/SafeAppsSigningMethod/index.tsx b/src/components/settings/SafeAppsSigningMethod/index.tsx index 21e21f880b..4d900a6f6e 100644 --- a/src/components/settings/SafeAppsSigningMethod/index.tsx +++ b/src/components/settings/SafeAppsSigningMethod/index.tsx @@ -19,23 +19,13 @@ export const SafeAppsSigningMethod = () => { - + Signing method - + This setting determines how the {'Safe{Wallet}'} will sign message requests from Safe Apps. Gasless, off-chain signing is used by default. Learn more about message signing{' '} here. diff --git a/src/components/settings/SecurityLogin/index.tsx b/src/components/settings/SecurityLogin/index.tsx index 1ba2421e76..d2ba01e986 100644 --- a/src/components/settings/SecurityLogin/index.tsx +++ b/src/components/settings/SecurityLogin/index.tsx @@ -11,14 +11,9 @@ const SecurityLogin = () => { const router = useRouter() return ( - + {isRecoverySupported && router.query.safe ? : null} + ) diff --git a/src/components/settings/SecuritySettings/index.tsx b/src/components/settings/SecuritySettings/index.tsx index 244dc212a2..44759ba3f4 100644 --- a/src/components/settings/SecuritySettings/index.tsx +++ b/src/components/settings/SecuritySettings/index.tsx @@ -10,23 +10,13 @@ const SecuritySettings = () => { - + Security - + Enabling this setting allows the signing of unreadable signature requests. Signing these messages can lead to unpredictable consequences, including the potential loss of funds or control over your account. diff --git a/src/components/settings/SpendingLimits/SpendingLimitsTable.tsx b/src/components/settings/SpendingLimits/SpendingLimitsTable.tsx index 8d2d0307b6..d9f18a3b47 100644 --- a/src/components/settings/SpendingLimits/SpendingLimitsTable.tsx +++ b/src/components/settings/SpendingLimits/SpendingLimitsTable.tsx @@ -20,14 +20,7 @@ const SKELETON_ROWS = new Array(3).fill('').map(() => { beneficiary: { rawValue: '0x', content: ( - +
@@ -43,14 +36,7 @@ const SKELETON_ROWS = new Array(3).fill('').map(() => { spent: { rawValue: '0', content: ( - + @@ -111,14 +97,7 @@ export const SpendingLimitsTable = ({ spent: { rawValue: spendingLimit.spent, content: ( - + {`${formattedSpent} of ${formattedAmount} ${spendingLimit.token.symbol}`} diff --git a/src/components/settings/owner/EditOwnerDialog/index.tsx b/src/components/settings/owner/EditOwnerDialog/index.tsx index 9a31183dff..b12aab771d 100644 --- a/src/components/settings/owner/EditOwnerDialog/index.tsx +++ b/src/components/settings/owner/EditOwnerDialog/index.tsx @@ -58,23 +58,16 @@ export const EditOwnerDialog = ({ chainId, address, name }: { chainId: string; a +
- + - + diff --git a/src/components/sidebar/DebugToggle/index.tsx b/src/components/sidebar/DebugToggle/index.tsx index 9bb058b8c1..eb12300296 100644 --- a/src/components/sidebar/DebugToggle/index.tsx +++ b/src/components/sidebar/DebugToggle/index.tsx @@ -25,12 +25,7 @@ const DebugToggle = (): ReactElement => { } return ( - + dispatch(setDarkMode(checked))} />} label="Dark mode" diff --git a/src/components/sidebar/QrCodeButton/QrModal.tsx b/src/components/sidebar/QrCodeButton/QrModal.tsx index b7357fe073..04ec8df5ba 100644 --- a/src/components/sidebar/QrCodeButton/QrModal.tsx +++ b/src/components/sidebar/QrCodeButton/QrModal.tsx @@ -21,47 +21,17 @@ const QrModal = ({ onClose }: { onClose: () => void }): ReactElement => { return ( - + {chainName} network — only send {chainName} assets to this Safe Account. - + This is the address of your Safe Account. Deposit funds by scanning the QR code or copying the address below. Only send {nativeToken} and tokens (e.g. ERC20, ERC721) to this address. - - + + @@ -76,11 +46,7 @@ const QrModal = ({ onClose }: { onClose: () => void }): ReactElement => { } /> - + { )} - + {safe.deployed ? ( balances.fiatTotal ? ( @@ -119,6 +113,7 @@ const SafeHeader = (): ReactElement => {
+
) diff --git a/src/components/transactions/BulkTxListGroup/index.tsx b/src/components/transactions/BulkTxListGroup/index.tsx index f20be867e2..935c2254c2 100644 --- a/src/components/transactions/BulkTxListGroup/index.tsx +++ b/src/components/transactions/BulkTxListGroup/index.tsx @@ -39,39 +39,22 @@ const GroupedTxListItems = ({ } return ( - + - + {title} {groupedListItems.length} transactions - + + {groupedListItems.map((tx) => { const nonce = isMultisigExecutionInfo(tx.transaction.executionInfo) ? tx.transaction.executionInfo.nonce : '' return ( - + {nonce} diff --git a/src/components/transactions/MaliciousTxWarning/index.tsx b/src/components/transactions/MaliciousTxWarning/index.tsx index b714e5b44b..a77b14d725 100644 --- a/src/components/transactions/MaliciousTxWarning/index.tsx +++ b/src/components/transactions/MaliciousTxWarning/index.tsx @@ -4,20 +4,12 @@ import WarningIcon from '@/public/images/notifications/warning.svg' const MaliciousTxWarning = ({ withTooltip = true }: { withTooltip?: boolean }) => { return withTooltip ? ( - + ) : ( - + ) diff --git a/src/components/transactions/SignedMessagesHelpLink/index.tsx b/src/components/transactions/SignedMessagesHelpLink/index.tsx index 3f0d7f94b8..6c3cfafe14 100644 --- a/src/components/transactions/SignedMessagesHelpLink/index.tsx +++ b/src/components/transactions/SignedMessagesHelpLink/index.tsx @@ -14,21 +14,10 @@ const SignedMessagesHelpLink = () => { } return ( - + - + What are signed messages? diff --git a/src/components/transactions/TxConfirmations/index.tsx b/src/components/transactions/TxConfirmations/index.tsx index 7eb7825276..e8a843f14e 100644 --- a/src/components/transactions/TxConfirmations/index.tsx +++ b/src/components/transactions/TxConfirmations/index.tsx @@ -17,12 +17,8 @@ const TxConfirmations = ({ return ( - + + {submittedConfirmations} out of {requiredConfirmations} diff --git a/src/components/transactions/TxDetails/Summary/index.tsx b/src/components/transactions/TxDetails/Summary/index.tsx index 980b750cdf..03e839ce37 100644 --- a/src/components/transactions/TxDetails/Summary/index.tsx +++ b/src/components/transactions/TxDetails/Summary/index.tsx @@ -67,11 +67,13 @@ const Summary = ({ txDetails, defaultExpanded = false, hideDecodedData = false } {submittedAt ? dateString(submittedAt) : null} + {executedAt && ( {dateString(executedAt)} )} + {/* Advanced TxData */} {txData && ( <> @@ -88,22 +90,9 @@ const Summary = ({ txDetails, defaultExpanded = false, hideDecodedData = false } )} {expanded && ( - + {!isCustom && !hideDecodedData && ( - + )} diff --git a/src/components/transactions/TxDetails/TxData/DecodedData/MethodCall.tsx b/src/components/transactions/TxDetails/TxData/DecodedData/MethodCall.tsx index 0ff9af87ac..7d78a51b9b 100644 --- a/src/components/transactions/TxDetails/TxData/DecodedData/MethodCall.tsx +++ b/src/components/transactions/TxDetails/TxData/DecodedData/MethodCall.tsx @@ -16,14 +16,12 @@ const MethodCall = ({ return ( <> Call + ) diff --git a/src/components/transactions/TxDetails/TxData/DecodedData/SingleTxDecoded/index.tsx b/src/components/transactions/TxDetails/TxData/DecodedData/SingleTxDecoded/index.tsx index c09a20cf70..dfe3114835 100644 --- a/src/components/transactions/TxDetails/TxData/DecodedData/SingleTxDecoded/index.tsx +++ b/src/components/transactions/TxDetails/TxData/DecodedData/SingleTxDecoded/index.tsx @@ -47,16 +47,13 @@ export const SingleTxDecoded = ({ tx, txData, actionTitle, variant, expanded, on
{actionTitle} - + {name ? name + ': ' : ''} {method}
+ diff --git a/src/components/transactions/TxDetails/TxData/Rejection/index.tsx b/src/components/transactions/TxDetails/TxData/Rejection/index.tsx index 748996e993..f1c8f66036 100644 --- a/src/components/transactions/TxDetails/TxData/Rejection/index.tsx +++ b/src/components/transactions/TxDetails/TxData/Rejection/index.tsx @@ -22,21 +22,11 @@ const RejectionTxInfo = ({ nonce, isTxExecuted }: Props) => { return ( <> - + {message} {!isTxExecuted && ( - + {title} diff --git a/src/components/transactions/TxDetails/TxData/Transfer/index.tsx b/src/components/transactions/TxDetails/TxData/Transfer/index.tsx index 34d6a98664..9971388af1 100644 --- a/src/components/transactions/TxDetails/TxData/Transfer/index.tsx +++ b/src/components/transactions/TxDetails/TxData/Transfer/index.tsx @@ -21,14 +21,7 @@ const TransferTxInfoMain = ({ txInfo, txStatus, trusted, imitation }: TransferTx const { direction } = txInfo return ( - + {direction === TransferDirection.INCOMING ? 'Received' : isTxQueued(txStatus) ? 'Send' : 'Sent'}{' '} @@ -45,21 +38,10 @@ const TransferTxInfo = ({ txInfo, txStatus, trusted, imitation }: TransferTxInfo const address = txInfo.direction.toUpperCase() === TransferDirection.INCOMING ? txInfo.sender : txInfo.recipient return ( - + - + + + This order has expired. Reject this transaction and try again. )} diff --git a/src/components/transactions/TxListItem/ExpandableTransactionItem.tsx b/src/components/transactions/TxListItem/ExpandableTransactionItem.tsx index 04e40ecd67..f94fb2b358 100644 --- a/src/components/transactions/TxListItem/ExpandableTransactionItem.tsx +++ b/src/components/transactions/TxListItem/ExpandableTransactionItem.tsx @@ -74,12 +74,7 @@ export const ExpandableTransactionItem = ({ export const TransactionSkeleton = () => ( <> - + diff --git a/src/components/transactions/TxStatusChip/index.tsx b/src/components/transactions/TxStatusChip/index.tsx index 2bffe6019a..339236fb75 100644 --- a/src/components/transactions/TxStatusChip/index.tsx +++ b/src/components/transactions/TxStatusChip/index.tsx @@ -17,13 +17,11 @@ const TxStatusChip = ({ children, color }: TxStatusChipProps): ReactElement => { label={ {children} diff --git a/src/components/transactions/TxSummary/QueueActions.tsx b/src/components/transactions/TxSummary/QueueActions.tsx index c0726ad3b4..df6075a6c0 100644 --- a/src/components/transactions/TxSummary/QueueActions.tsx +++ b/src/components/transactions/TxSummary/QueueActions.tsx @@ -20,14 +20,7 @@ const QueueActions = ({ tx }: { tx: TransactionSummary }) => { } return ( - + {ExecutionComponent} {pendingTx && pendingTx.status === PendingStatus.PROCESSING && ( diff --git a/src/components/tx-flow/common/TxNonce/index.tsx b/src/components/tx-flow/common/TxNonce/index.tsx index 154e5f3a73..5d3f243e39 100644 --- a/src/components/tx-flow/common/TxNonce/index.tsx +++ b/src/components/tx-flow/common/TxNonce/index.tsx @@ -42,13 +42,7 @@ const CustomPopper = function ({ const NonceFormHeader = memo(function NonceFormSubheader({ children, ...props }: ListSubheaderProps) { return ( - + {children} @@ -185,13 +179,7 @@ const TxNonceForm = ({ nonce, recommendedNonce }: { nonce: string; recommendedNo render={({ field, fieldState }) => { if (readOnly) { return ( - + {nonce} ) @@ -289,21 +277,9 @@ const TxNonce = () => { const { nonce, recommendedNonce } = useContext(SafeTxContext) return ( - + Nonce{' '} - + # {nonce === undefined || recommendedNonce === undefined ? ( diff --git a/src/components/tx-flow/common/TxStatusWidget/index.tsx b/src/components/tx-flow/common/TxStatusWidget/index.tsx index ce16000d6e..11847b6ee9 100644 --- a/src/components/tx-flow/common/TxStatusWidget/index.tsx +++ b/src/components/tx-flow/common/TxStatusWidget/index.tsx @@ -47,14 +47,7 @@ const TxStatusWidget = ({ return (
- + {isMessage ? 'Message' : 'Transaction'} status @@ -63,7 +56,9 @@ const TxStatusWidget = ({
+ +
diff --git a/src/components/tx-flow/flows/CancelRecovery/CancelRecoveryFlowReview.tsx b/src/components/tx-flow/flows/CancelRecovery/CancelRecoveryFlowReview.tsx index 44cfabd742..578f308e37 100644 --- a/src/components/tx-flow/flows/CancelRecovery/CancelRecoveryFlowReview.tsx +++ b/src/components/tx-flow/flows/CancelRecovery/CancelRecoveryFlowReview.tsx @@ -31,14 +31,11 @@ export function CancelRecoveryFlowReview({ recovery }: { recovery: RecoveryQueue return ( - + All actions initiated by the Recoverer will be cancelled. The current signers will remain the signers of the Safe Account. + This transaction will initiate the cancellation of the{' '} {recovery.isMalicious ? 'malicious transaction' : 'recovery proposal'}. It requires other signer signatures in diff --git a/src/components/tx-flow/flows/CancelRecovery/CancelRecoveryOverview.tsx b/src/components/tx-flow/flows/CancelRecovery/CancelRecoveryOverview.tsx index 3c882e5558..8e128c2871 100644 --- a/src/components/tx-flow/flows/CancelRecovery/CancelRecoveryOverview.tsx +++ b/src/components/tx-flow/flows/CancelRecovery/CancelRecoveryOverview.tsx @@ -20,48 +20,20 @@ export function CancelRecoveryOverview({ onSubmit }: { onSubmit: () => void }): return ( - + {/* TODO: Replace with correct icon when provided */} - + Do you want to cancel the Account recovery? - + If it is an unwanted recovery proposal or you've noticed something suspicious, you can cancel it at any time. - + diff --git a/src/components/tx-flow/flows/NewSpendingLimit/CreateSpendingLimit.tsx b/src/components/tx-flow/flows/NewSpendingLimit/CreateSpendingLimit.tsx index 0646c6197c..4d99ecfa03 100644 --- a/src/components/tx-flow/flows/NewSpendingLimit/CreateSpendingLimit.tsx +++ b/src/components/tx-flow/flows/NewSpendingLimit/CreateSpendingLimit.tsx @@ -74,13 +74,7 @@ export const CreateSpendingLimit = ({ - + Reset Timer diff --git a/src/components/tx-flow/flows/RecoverAccount/RecoverAccountFlowReview.tsx b/src/components/tx-flow/flows/RecoverAccount/RecoverAccountFlowReview.tsx index 2da5365824..71db742fce 100644 --- a/src/components/tx-flow/flows/RecoverAccount/RecoverAccountFlowReview.tsx +++ b/src/components/tx-flow/flows/RecoverAccount/RecoverAccountFlowReview.tsx @@ -111,11 +111,7 @@ export function RecoverAccountFlowReview({ params }: { params: RecoverAccountFlo return ( <> - + This transaction will reset the Account setup, changing the signers {newThreshold !== safe.threshold ? ' and threshold' : ''}. @@ -124,18 +120,8 @@ export function RecoverAccountFlowReview({ params }: { params: RecoverAccountFlo - - + + After recovery, Safe Account transactions will require: @@ -149,7 +135,9 @@ export function RecoverAccountFlowReview({ params }: { params: RecoverAccountFlo + + <> diff --git a/src/components/tx-flow/flows/RejectTx/RejectTx.tsx b/src/components/tx-flow/flows/RejectTx/RejectTx.tsx index 1bbd9eb96e..5e47cc5b50 100644 --- a/src/components/tx-flow/flows/RejectTx/RejectTx.tsx +++ b/src/components/tx-flow/flows/RejectTx/RejectTx.tsx @@ -20,25 +20,15 @@ const RejectTx = ({ txNonce }: RejectTxProps): ReactElement => { return ( - + To reject the transaction, a separate rejection transaction will be created to replace the original one. - + + Transaction nonce: {txNonce} - + + You will need to confirm the rejection transaction with your currently connected wallet. diff --git a/src/components/tx-flow/flows/RemoveGuard/ReviewRemoveGuard.tsx b/src/components/tx-flow/flows/RemoveGuard/ReviewRemoveGuard.tsx index 04b89061b4..2b61d25a07 100644 --- a/src/components/tx-flow/flows/RemoveGuard/ReviewRemoveGuard.tsx +++ b/src/components/tx-flow/flows/RemoveGuard/ReviewRemoveGuard.tsx @@ -28,12 +28,10 @@ export const ReviewRemoveGuard = ({ params }: { params: RemoveGuardFlowProps }) return ( ({ color: palette.primary.light })}>Transaction guard + - + + Once the transaction guard has been removed, checks by the transaction guard will not be conducted before or after any subsequent transactions. diff --git a/src/components/tx-flow/flows/RemoveOwner/ReviewRemoveOwner.tsx b/src/components/tx-flow/flows/RemoveOwner/ReviewRemoveOwner.tsx index 2e13a1fa2e..4b15885928 100644 --- a/src/components/tx-flow/flows/RemoveOwner/ReviewRemoveOwner.tsx +++ b/src/components/tx-flow/flows/RemoveOwner/ReviewRemoveOwner.tsx @@ -35,14 +35,7 @@ export const ReviewRemoveOwner = ({ params }: { params: RemoveOwnerFlowProps }): return ( palette.warning.background, p: 2 }}> - + Selected signer @@ -55,19 +48,10 @@ export const ReviewRemoveOwner = ({ params }: { params: RemoveOwnerFlowProps }): /> + - - + + Any transaction requires the confirmation of: diff --git a/src/components/tx-flow/flows/RemoveRecovery/RemoveRecoveryFlowOverview.tsx b/src/components/tx-flow/flows/RemoveRecovery/RemoveRecoveryFlowOverview.tsx index 5fc67f9028..94dd3951b4 100644 --- a/src/components/tx-flow/flows/RemoveRecovery/RemoveRecoveryFlowOverview.tsx +++ b/src/components/tx-flow/flows/RemoveRecovery/RemoveRecoveryFlowOverview.tsx @@ -17,17 +17,13 @@ export function RemoveRecoveryFlowOverview({ This transaction will remove the recovery module from your Safe Account. You will no longer be able to recover your Safe Account. + This Recoverer will not be able to initiate the recovery process once this transaction is executed. +
- + Removing Recoverer @@ -42,7 +38,9 @@ export function RemoveRecoveryFlowOverview({ /> ))}
+ +
}> )} + {safeTx && ( - + )} - + + Signing method: {method} - + + Signing message: {readableMessage && } - + + - + Signing a message with your Safe Account requires a transaction on the blockchain diff --git a/src/components/tx-flow/flows/SuccessScreen/StatusMessage.tsx b/src/components/tx-flow/flows/SuccessScreen/StatusMessage.tsx index c3c8f9c5bd..456e43d336 100644 --- a/src/components/tx-flow/flows/SuccessScreen/StatusMessage.tsx +++ b/src/components/tx-flow/flows/SuccessScreen/StatusMessage.tsx @@ -37,21 +37,9 @@ const StatusMessage = ({ status, error }: { status: PendingStatus; error?: Error return ( <> - + - + {stepInfo.description} diff --git a/src/components/tx-flow/flows/SuccessScreen/StatusStepper.tsx b/src/components/tx-flow/flows/SuccessScreen/StatusStepper.tsx index f6196b7962..6952955195 100644 --- a/src/components/tx-flow/flows/SuccessScreen/StatusStepper.tsx +++ b/src/components/tx-flow/flows/SuccessScreen/StatusStepper.tsx @@ -17,12 +17,7 @@ const StatusStepper = ({ status, txHash }: { status?: PendingStatus; txHash?: st - + Your transaction {txHash && ( @@ -41,12 +36,7 @@ const StatusStepper = ({ status, txHash }: { status?: PendingStatus; txHash?: st - + {isProcessed ? 'Processed' : 'Processing'} @@ -54,24 +44,14 @@ const StatusStepper = ({ status, txHash }: { status?: PendingStatus; txHash?: st - + {isSuccess ? 'Indexed' : 'Indexing'} - + Transaction is executed diff --git a/src/components/tx-flow/flows/SuccessScreen/statuses/DefaultStatus.tsx b/src/components/tx-flow/flows/SuccessScreen/statuses/DefaultStatus.tsx index f0c47c9fd3..3166e284a6 100644 --- a/src/components/tx-flow/flows/SuccessScreen/statuses/DefaultStatus.tsx +++ b/src/components/tx-flow/flows/SuccessScreen/statuses/DefaultStatus.tsx @@ -10,20 +10,8 @@ type Props = { error: undefined | Error } export const DefaultStatus = ({ error }: Props) => ( - - + + {error ? TRANSACTION_FAILED : TRANSACTION_SUCCESSFUL} {error && ( diff --git a/src/components/tx-flow/flows/SuccessScreen/statuses/IndexingStatus.tsx b/src/components/tx-flow/flows/SuccessScreen/statuses/IndexingStatus.tsx index 36e195a0de..7b98f3da14 100644 --- a/src/components/tx-flow/flows/SuccessScreen/statuses/IndexingStatus.tsx +++ b/src/components/tx-flow/flows/SuccessScreen/statuses/IndexingStatus.tsx @@ -3,20 +3,8 @@ import classNames from 'classnames' import css from '@/components/tx-flow/flows/SuccessScreen/styles.module.css' export const IndexingStatus = () => ( - - + + Transaction was processed diff --git a/src/components/tx-flow/flows/SuccessScreen/statuses/ProcessingStatus.tsx b/src/components/tx-flow/flows/SuccessScreen/statuses/ProcessingStatus.tsx index 86c97c8918..58a97a052f 100644 --- a/src/components/tx-flow/flows/SuccessScreen/statuses/ProcessingStatus.tsx +++ b/src/components/tx-flow/flows/SuccessScreen/statuses/ProcessingStatus.tsx @@ -8,28 +8,11 @@ type Props = { pendingTx: PendingTx } export const ProcessingStatus = ({ txId, pendingTx }: Props) => ( - - + + Transaction is now processing - + The transaction was confirmed and is now being processed. diff --git a/src/components/tx-flow/flows/TokenTransfer/ReviewSpendingLimitTx.tsx b/src/components/tx-flow/flows/TokenTransfer/ReviewSpendingLimitTx.tsx index 7551b40aa7..80f51861f4 100644 --- a/src/components/tx-flow/flows/TokenTransfer/ReviewSpendingLimitTx.tsx +++ b/src/components/tx-flow/flows/TokenTransfer/ReviewSpendingLimitTx.tsx @@ -147,13 +147,7 @@ const ReviewSpendingLimitTx = ({ {isRejectedByUser && } - + You're about to create a transaction and will need to confirm it with your currently connected wallet. diff --git a/src/components/tx-flow/flows/UpdateSafe/UpdateSafeReview.tsx b/src/components/tx-flow/flows/UpdateSafe/UpdateSafeReview.tsx index fa383af145..4fe31a6fda 100644 --- a/src/components/tx-flow/flows/UpdateSafe/UpdateSafeReview.tsx +++ b/src/components/tx-flow/flows/UpdateSafe/UpdateSafeReview.tsx @@ -29,36 +29,23 @@ export const UpdateSafeReview = () => { return ( - + Update now to take advantage of new features and the highest security standards available. - + + To check details about updates added by this smart contract version please visit{' '} latest Safe Account contracts changelog - + + You will need to confirm this update just like any other transaction. This means other signers will have to confirm the update in case more than one confirmation is required for this Safe Account. - + + Warning: this upgrade will invalidate all unexecuted transactions. This means you will be unable to access or execute them after the upgrade. Please make sure to execute any remaining transactions before upgrading. diff --git a/src/components/tx/AdvancedParams/AdvancedParamsForm.tsx b/src/components/tx/AdvancedParams/AdvancedParamsForm.tsx index 1f341649a7..516bdae5e2 100644 --- a/src/components/tx/AdvancedParams/AdvancedParamsForm.tsx +++ b/src/components/tx/AdvancedParams/AdvancedParamsForm.tsx @@ -73,12 +73,7 @@ const AdvancedParamsForm = ({ params, ...props }: AdvancedParamsFormProps) => { - + Execution parameters @@ -133,11 +128,7 @@ const AdvancedParamsForm = ({ params, ...props }: AdvancedParamsFormProps) => { {/* Help link */} - + How can I configure these parameters manually? diff --git a/src/components/tx/ApprovalEditor/EditableApprovalItem.tsx b/src/components/tx/ApprovalEditor/EditableApprovalItem.tsx index 6e63db2848..a263aed275 100644 --- a/src/components/tx/ApprovalEditor/EditableApprovalItem.tsx +++ b/src/components/tx/ApprovalEditor/EditableApprovalItem.tsx @@ -43,24 +43,17 @@ const EditableApprovalItem = ({ return ( - + + + {readOnly ? ( diff --git a/src/components/tx/BalanceInfo/index.tsx b/src/components/tx/BalanceInfo/index.tsx index cb7e4a2212..5b600d56d8 100644 --- a/src/components/tx/BalanceInfo/index.tsx +++ b/src/components/tx/BalanceInfo/index.tsx @@ -9,12 +9,7 @@ const BalanceInfo = () => { return (
- + Wallet balance:
diff --git a/src/components/tx/ConfirmationOrder/ConfirmationOrderHeader.tsx b/src/components/tx/ConfirmationOrder/ConfirmationOrderHeader.tsx index 9b003220fe..80603fe38d 100644 --- a/src/components/tx/ConfirmationOrder/ConfirmationOrderHeader.tsx +++ b/src/components/tx/ConfirmationOrder/ConfirmationOrderHeader.tsx @@ -32,37 +32,17 @@ const ConfirmationOrderHeader = ({ blocks, showArrow }: { blocks: [InfoBlock, In }} > {block.tokenInfo && ( - + )} - - + + {block.label} - + {block.tokenInfo ? ( ( ) diff --git a/src/components/tx/ExecutionMethodSelector/index.tsx b/src/components/tx/ExecutionMethodSelector/index.tsx index c10c180c98..3e78e6fd0e 100644 --- a/src/components/tx/ExecutionMethodSelector/index.tsx +++ b/src/components/tx/ExecutionMethodSelector/index.tsx @@ -57,12 +57,7 @@ const _ExecutionMethodSelector = ({ sx={{ flex: 1 }} value={ExecutionMethod.RELAY} label={ - + Sponsored by @@ -85,6 +80,7 @@ const _ExecutionMethodSelector = ({
+ {shouldRelay && relays ? : wallet ? : null}
) diff --git a/src/components/tx/RemainingRelays/index.tsx b/src/components/tx/RemainingRelays/index.tsx index 3a84ccaea7..8bd3051463 100644 --- a/src/components/tx/RemainingRelays/index.tsx +++ b/src/components/tx/RemainingRelays/index.tsx @@ -13,15 +13,7 @@ const RemainingRelays = ({ relays, tooltip }: { relays?: RelayCountResponse; too return (
- + {relays?.remaining ?? MAX_DAY_RELAYS} free transactions left today diff --git a/src/components/tx/SendFromBlock/index.tsx b/src/components/tx/SendFromBlock/index.tsx index 300da34b4b..5c1dc7f57b 100644 --- a/src/components/tx/SendFromBlock/index.tsx +++ b/src/components/tx/SendFromBlock/index.tsx @@ -10,24 +10,15 @@ const SendFromBlock = ({ title }: { title?: string }): ReactElement => { const address = useSafeAddress() return ( - - + + {title || 'Sending from'} + + ) diff --git a/src/components/tx/SignOrExecuteForm/BatchButton.tsx b/src/components/tx/SignOrExecuteForm/BatchButton.tsx index 2baeb91613..a85893827e 100644 --- a/src/components/tx/SignOrExecuteForm/BatchButton.tsx +++ b/src/components/tx/SignOrExecuteForm/BatchButton.tsx @@ -29,14 +29,7 @@ const BatchButton = ({ - + {' '} + Error submitting the transaction. Please try again. )} {isRejectedByUser && ( - + )} diff --git a/src/components/tx/SignOrExecuteForm/ExecuteThroughRoleForm/index.tsx b/src/components/tx/SignOrExecuteForm/ExecuteThroughRoleForm/index.tsx index 091c86c7e5..b8fcc7a600 100644 --- a/src/components/tx/SignOrExecuteForm/ExecuteThroughRoleForm/index.tsx +++ b/src/components/tx/SignOrExecuteForm/ExecuteThroughRoleForm/index.tsx @@ -143,6 +143,7 @@ export const ExecuteThroughRoleForm = ({ return ( <> + {!permissionsError && ( <> @@ -164,11 +165,7 @@ export const ExecuteThroughRoleForm = ({ )} {permissionsError && ( - + You are a member of the {role.roleKey} role but it does not allow this transaction. @@ -177,26 +174,14 @@ export const ExecuteThroughRoleForm = ({ )} - + Powered by Zodiac Roles Zodiac {multiSendImpossible && ( - + The current configuration of the Zodiac Roles module does not allow executing multiple transactions in batch. @@ -205,22 +190,14 @@ export const ExecuteThroughRoleForm = ({ )} {!walletCanPay ? ( - + Your connected wallet doesn't have enough funds to execute this transaction. ) : ( gasLimitError && ( - + This transaction will most likely fail. To save gas costs, avoid creating this transaction. @@ -229,30 +206,18 @@ export const ExecuteThroughRoleForm = ({ )} {submitError && ( - + Error submitting the transaction. Please try again. )} {isRejectedByUser && ( - + )} - + diff --git a/src/components/tx/SignOrExecuteForm/MigrateToL2Information.tsx b/src/components/tx/SignOrExecuteForm/MigrateToL2Information.tsx index a6ff0617c2..6240d7b4de 100644 --- a/src/components/tx/SignOrExecuteForm/MigrateToL2Information.tsx +++ b/src/components/tx/SignOrExecuteForm/MigrateToL2Information.tsx @@ -13,12 +13,7 @@ export const MigrateToL2Information = ({ }> - + Migration to compatible base contract @@ -29,18 +24,8 @@ export const MigrateToL2Information = ({ {newMasterCopy && ( - - + + New contract diff --git a/src/components/tx/SignOrExecuteForm/SignForm.tsx b/src/components/tx/SignOrExecuteForm/SignForm.tsx index 8673d781cc..2185171e00 100644 --- a/src/components/tx/SignOrExecuteForm/SignForm.tsx +++ b/src/components/tx/SignOrExecuteForm/SignForm.tsx @@ -104,6 +104,7 @@ export const SignForm = ({ return ( {hasSigned && You have already signed this transaction.} + {cannotPropose ? ( ) : ( @@ -111,16 +112,15 @@ export const SignForm = ({ Error submitting the transaction. Please try again. ) )} + {isRejectedByUser && ( - + )} + + ( - + diff --git a/src/components/tx/SuccessMessage/index.tsx b/src/components/tx/SuccessMessage/index.tsx index e7df90bba0..9f3ce22916 100644 --- a/src/components/tx/SuccessMessage/index.tsx +++ b/src/components/tx/SuccessMessage/index.tsx @@ -10,12 +10,7 @@ const SuccessMessage = ({ children, className }: { children: ReactNode; classNam
- + {children}
diff --git a/src/components/tx/confirmation-views/ChangeThreshold/__snapshots__/ChangeThreshold.test.tsx.snap b/src/components/tx/confirmation-views/ChangeThreshold/__snapshots__/ChangeThreshold.test.tsx.snap index 86ded94068..43b9d23997 100644 --- a/src/components/tx/confirmation-views/ChangeThreshold/__snapshots__/ChangeThreshold.test.tsx.snap +++ b/src/components/tx/confirmation-views/ChangeThreshold/__snapshots__/ChangeThreshold.test.tsx.snap @@ -4,7 +4,7 @@ exports[`ChangeThreshold should display the ChangeThreshold component with the n

Any transaction will require the confirmation of:

diff --git a/src/components/tx/confirmation-views/ChangeThreshold/index.tsx b/src/components/tx/confirmation-views/ChangeThreshold/index.tsx index 0841eefdc7..ba7faedd75 100644 --- a/src/components/tx/confirmation-views/ChangeThreshold/index.tsx +++ b/src/components/tx/confirmation-views/ChangeThreshold/index.tsx @@ -21,14 +21,9 @@ function ChangeThreshold({ txDetails }: ChangeThresholdProps) { return ( <> +
- + Any transaction will require the confirmation of: diff --git a/src/components/tx/confirmation-views/SettingsChange/__snapshots__/SettingsChange.test.tsx.snap b/src/components/tx/confirmation-views/SettingsChange/__snapshots__/SettingsChange.test.tsx.snap index f83c827e1f..68b2eb3519 100644 --- a/src/components/tx/confirmation-views/SettingsChange/__snapshots__/SettingsChange.test.tsx.snap +++ b/src/components/tx/confirmation-views/SettingsChange/__snapshots__/SettingsChange.test.tsx.snap @@ -7,7 +7,7 @@ exports[`SettingsChange should display the SettingsChange component with newOwne style="--Paper-shadow: none;" >

= ({ txInfo: { settingsInfo <> {'oldOwner' in settingsInfo && ( palette.warning.background, p: 2 }}> - + Previous signer @@ -47,9 +40,12 @@ const SettingsChange: React.FC = ({ txInfo: { settingsInfo /> )} + {'owner' in settingsInfo && !hasNewOwner && } {hasNewOwner && } + {shouldShowChangeSigner && } + {'threshold' in settingsInfo && ( <> diff --git a/src/components/tx/security/blockaid/BlockaidBalanceChange.tsx b/src/components/tx/security/blockaid/BlockaidBalanceChange.tsx index 20433ffd18..4b5d60f37b 100644 --- a/src/components/tx/security/blockaid/BlockaidBalanceChange.tsx +++ b/src/components/tx/security/blockaid/BlockaidBalanceChange.tsx @@ -41,23 +41,11 @@ const FungibleBalanceChange = ({ change, asset }: { asset: AssetDiff['asset']; c return ( <> - + {change.value ? formatAmount(change.value) : 'unknown'} - + {asset.symbol} @@ -78,23 +66,11 @@ const NFTBalanceChange = ({ return ( <> {asset.symbol ? ( - + {asset.symbol} ) : ( - + )} - + #{Number(change.token_id)} @@ -162,12 +132,7 @@ const BalanceChanges = () => { color: ({ palette }) => palette.text.secondary, }} /> - + Calculating...

@@ -175,26 +140,14 @@ const BalanceChanges = () => { } if (error) { return ( - + Could not calculate balance changes. ) } if (totalBalanceChanges === 0) { return ( - + No balance change detected ) @@ -227,13 +180,7 @@ export const BlockaidBalanceChanges = () => { return (
- + Balance change
- + Run a simulation
+
{isLoading ? ( { if (!isSuccess || isError || isCallTraceError) { return ( - + Simulation failed {requestError ? ( @@ -209,12 +200,7 @@ export const TxSimulationMessage = () => { return ( - + Simulation successful Full simulation report is available on Tenderly. diff --git a/src/components/welcome/WelcomeLogin/WalletLogin.tsx b/src/components/welcome/WelcomeLogin/WalletLogin.tsx index a2d137faf8..9486b34edf 100644 --- a/src/components/welcome/WelcomeLogin/WalletLogin.tsx +++ b/src/components/welcome/WelcomeLogin/WalletLogin.tsx @@ -18,28 +18,15 @@ const WalletLogin = ({ onLogin, onContinue }: { onLogin: () => void; onContinue: @@ -64,19 +59,8 @@ const SignInBanner = ({ provider }: { provider: BrowserProvider | undefined }) = } > - - + + Access your accounts on any device! Enable cloud storage to switch devices effortlessly and keep your data secure. diff --git a/src/features/speedup/components/SpeedUpModal.tsx b/src/features/speedup/components/SpeedUpModal.tsx index 30f46e9861..767e8932d7 100644 --- a/src/features/speedup/components/SpeedUpModal.tsx +++ b/src/features/speedup/components/SpeedUpModal.tsx @@ -167,35 +167,19 @@ export const SpeedUpModal = ({ return ( - + This will speed up the pending transaction by{' '} - + replacing {' '} the original gas parameters with new ones. - + {speedUpFee && signerNonce && ( + @@ -241,14 +226,7 @@ export const SpeedUpModal = ({ return ( - + diff --git a/src/features/stake/components/StakingTxExitDetails/index.tsx b/src/features/stake/components/StakingTxExitDetails/index.tsx index 30ffa0896a..d4cdb80722 100644 --- a/src/features/stake/components/StakingTxExitDetails/index.tsx +++ b/src/features/stake/components/StakingTxExitDetails/index.tsx @@ -14,14 +14,7 @@ const StakingTxExitDetails = ({ info }: { info: StakingTxExitInfo }) => { ]) return ( - + {info.validators.map((validator: string, index: number) => { return ( @@ -33,6 +26,7 @@ const StakingTxExitDetails = ({ info }: { info: StakingTxExitInfo }) => { })} {info.status !== NativeStakingStatus.EXITED && Up to {withdrawIn}} + diff --git a/src/features/stake/components/StakingTxWithdrawDetails/index.tsx b/src/features/stake/components/StakingTxWithdrawDetails/index.tsx index 1a20e647fc..78681f19d0 100644 --- a/src/features/stake/components/StakingTxWithdrawDetails/index.tsx +++ b/src/features/stake/components/StakingTxWithdrawDetails/index.tsx @@ -4,15 +4,7 @@ import StakingConfirmationTxWithdraw from '@/features/stake/components/StakingCo const StakingTxWithdrawDetails = ({ info }: { info: StakingTxWithdrawInfo }) => { return ( - + ) diff --git a/src/features/swap/components/OrderId/index.tsx b/src/features/swap/components/OrderId/index.tsx index 8179d25ea7..e128adb8eb 100644 --- a/src/features/swap/components/OrderId/index.tsx +++ b/src/features/swap/components/OrderId/index.tsx @@ -21,11 +21,7 @@ const OrderId = ({ {truncatedOrderId} {showCopyButton && } - + diff --git a/src/features/swap/components/SwapOrder/rows/PartBuyAmount.tsx b/src/features/swap/components/SwapOrder/rows/PartBuyAmount.tsx index 7911af2b7b..5076242c14 100644 --- a/src/features/swap/components/SwapOrder/rows/PartBuyAmount.tsx +++ b/src/features/swap/components/SwapOrder/rows/PartBuyAmount.tsx @@ -15,20 +15,10 @@ export const PartBuyAmount = ({ return ( - + {formatVisualAmount(minPartLimit, buyToken.decimals)} {buyToken.symbol} - + {` ${addonText}`} diff --git a/src/features/swap/components/SwapOrder/rows/PartSellAmount.tsx b/src/features/swap/components/SwapOrder/rows/PartSellAmount.tsx index 2346dc5b2d..ac8fcf13b6 100644 --- a/src/features/swap/components/SwapOrder/rows/PartSellAmount.tsx +++ b/src/features/swap/components/SwapOrder/rows/PartSellAmount.tsx @@ -15,20 +15,10 @@ export const PartSellAmount = ({ return ( - + {formatVisualAmount(partSellAmount, sellToken.decimals)} {sellToken.symbol} - + {` ${addonText}`} diff --git a/src/features/swap/components/SwapOrderConfirmationView/index.tsx b/src/features/swap/components/SwapOrderConfirmationView/index.tsx index a1feae9bbb..13392a847d 100644 --- a/src/features/swap/components/SwapOrderConfirmationView/index.tsx +++ b/src/features/swap/components/SwapOrderConfirmationView/index.tsx @@ -44,6 +44,7 @@ export const SwapOrderConfirmation = ({ order, decodedData, settlementContract } return ( <> {isChangingFallbackHandler && } + - + {formatTimeInWords(validUntil * 1000)} {' '} ({formatDateTime(validUntil * 1000)}) @@ -124,6 +120,7 @@ export const SwapOrderConfirmation = ({ order, decodedData, settlementContract } ), ]} /> + {isTwapOrder && (
( ) const OnlyToken = ({ token }: { token: OrderToken }) => ( - + {token.symbol} @@ -43,22 +35,15 @@ export const SwapTx = ({ info }: { info: Order }): ReactElement => { return ( {from} - +  to  {to} diff --git a/src/features/walletconnect/components/WcConnectionState/index.tsx b/src/features/walletconnect/components/WcConnectionState/index.tsx index e48d608677..d3f4284e72 100644 --- a/src/features/walletconnect/components/WcConnectionState/index.tsx +++ b/src/features/walletconnect/components/WcConnectionState/index.tsx @@ -24,12 +24,8 @@ const WcConnectionState = ({ metadata, isDelete }: { metadata?: CoreTypes.Metada
- + + {isDelete ? `${name} disconnected` : `${name} successfully connected!`}
diff --git a/src/features/walletconnect/components/WcErrorMessage/index.tsx b/src/features/walletconnect/components/WcErrorMessage/index.tsx index e14144925b..05454ab393 100644 --- a/src/features/walletconnect/components/WcErrorMessage/index.tsx +++ b/src/features/walletconnect/components/WcErrorMessage/index.tsx @@ -10,16 +10,13 @@ const WcErrorMessage = ({ error, onClose }: { error: Error; onClose: () => void return (
+ {details && ( - + {details} )} + diff --git a/src/features/walletconnect/components/WcHints/index.tsx b/src/features/walletconnect/components/WcHints/index.tsx index defb6b04df..8123a20c2b 100644 --- a/src/features/walletconnect/components/WcHints/index.tsx +++ b/src/features/walletconnect/components/WcHints/index.tsx @@ -85,13 +85,7 @@ const WcHints = (): ReactElement => { } return ( - + {errorMessage && }
- + + {errorMessage || 'Connect dApps to Safe{Wallet}'} diff --git a/src/features/walletconnect/components/WcProposalForm/CompatibilityWarning.tsx b/src/features/walletconnect/components/WcProposalForm/CompatibilityWarning.tsx index cb6c4384ea..68f748f504 100644 --- a/src/features/walletconnect/components/WcProposalForm/CompatibilityWarning.tsx +++ b/src/features/walletconnect/components/WcProposalForm/CompatibilityWarning.tsx @@ -32,14 +32,10 @@ export const CompatibilityWarning = ({ {message} + {isUnsupportedChain && ( <> - + Supported networks @@ -49,12 +45,7 @@ export const CompatibilityWarning = ({ ))}
- + Switch network diff --git a/src/features/walletconnect/components/WcProposalForm/index.tsx b/src/features/walletconnect/components/WcProposalForm/index.tsx index 7b8bb5f798..41e73e0faf 100644 --- a/src/features/walletconnect/components/WcProposalForm/index.tsx +++ b/src/features/walletconnect/components/WcProposalForm/index.tsx @@ -114,39 +114,30 @@ const WcProposalForm = ({ proposal, setProposal, onApprove }: ProposalFormProps) return (
- + WalletConnect + {proposer.metadata.icons[0] && (
)} - + + {name} wants to connect - + + {proposal.verifyContext.verified.origin} +
+ {!isBlocked && isHighRisk && ( )} + {isSafePass && sanctionedAddress && ( )} + +
+
{showFilter && } - +
diff --git a/src/pages/transactions/msg.tsx b/src/pages/transactions/msg.tsx index 82cd4e62e4..2db44e1e61 100644 --- a/src/pages/transactions/msg.tsx +++ b/src/pages/transactions/msg.tsx @@ -10,16 +10,9 @@ const SingleTransaction: NextPage = () => { {'Safe{Wallet} – Message details'} +
- + Message details diff --git a/src/pages/transactions/queue.tsx b/src/pages/transactions/queue.tsx index cc44deaf1b..f68919550e 100644 --- a/src/pages/transactions/queue.tsx +++ b/src/pages/transactions/queue.tsx @@ -17,17 +17,14 @@ const Queue: NextPage = () => { {'Safe{Wallet} – Transaction queue'} +
- + {/* Pending unsigned transactions */} diff --git a/src/pages/transactions/tx.tsx b/src/pages/transactions/tx.tsx index 61d4207550..e60e093ebe 100644 --- a/src/pages/transactions/tx.tsx +++ b/src/pages/transactions/tx.tsx @@ -10,16 +10,9 @@ const SingleTransaction: NextPage = () => { {'Safe{Wallet} – Transaction details'} +
- + Transaction details diff --git a/src/services/private-key-module/PkModulePopup.tsx b/src/services/private-key-module/PkModulePopup.tsx index 47c899ee52..5bdbbb2452 100644 --- a/src/services/private-key-module/PkModulePopup.tsx +++ b/src/services/private-key-module/PkModulePopup.tsx @@ -23,18 +23,8 @@ const PkModulePopup = () => { return ( - - + + Enter your signer private key. The key will be saved for the duration of this browser session. diff --git a/src/services/safe-wallet-provider/index.test.ts b/src/services/safe-wallet-provider/index.test.ts index 1e33ddc80c..d59cd5c741 100644 --- a/src/services/safe-wallet-provider/index.test.ts +++ b/src/services/safe-wallet-provider/index.test.ts @@ -622,10 +622,10 @@ describe('SafeWalletProvider', () => { it('should return a confirmed transaction if blockNumber/gasUsed are hex', async () => { const receipt: Pick = { logs: [], - blockHash: faker.string.hexadecimal(), + blockHash: numberToHex(Number(faker.string.hexadecimal())), // Typed as number/bigint; is hex - blockNumber: faker.string.hexadecimal() as unknown as number, - gasUsed: faker.string.hexadecimal() as unknown as bigint, + blockNumber: numberToHex(Number(faker.string.hexadecimal())) as unknown as number, + gasUsed: numberToHex(Number(faker.string.hexadecimal())) as unknown as bigint, } const sdk = { getBySafeTxHash: jest.fn().mockResolvedValue({ @@ -658,10 +658,10 @@ describe('SafeWalletProvider', () => { result: { receipts: [ { - blockHash: numberToHex(Number(receipt.blockHash)), - blockNumber: numberToHex(Number(receipt.blockNumber)), + blockHash: receipt.blockHash, + blockNumber: receipt.blockNumber, chainId: '0x1', - gasUsed: numberToHex(Number(receipt.gasUsed)), + gasUsed: receipt.gasUsed, logs: receipt.logs, status: '0x1', transactionHash: '0x123', @@ -675,7 +675,7 @@ describe('SafeWalletProvider', () => { it('should return a confirmed transaction if blockNumber/gasUsed are number/bigint', async () => { const receipt: Pick = { logs: [], - blockHash: faker.string.hexadecimal(), + blockHash: numberToHex(Number(faker.string.hexadecimal())), blockNumber: faker.number.int(), gasUsed: faker.number.bigInt(), } @@ -710,8 +710,8 @@ describe('SafeWalletProvider', () => { result: { receipts: [ { - blockHash: receipt.blockHash, - blockNumber: numberToHex(receipt.blockNumber), + blockHash: numberToHex(Number(receipt.blockHash)), + blockNumber: numberToHex(Number(receipt.blockNumber)), chainId: '0x1', gasUsed: numberToHex(receipt.gasUsed), logs: receipt.logs,