Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove "Powered by" from balance changes #2181

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions src/components/tx/security/redefine/RedefineBalanceChange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,15 @@ import { type RedefineModuleResponse } from '@/services/security/modules/Redefin
import { sameAddress } from '@/utils/addresses'
import { FEATURES } from '@/utils/chains'
import { formatVisualAmount } from '@/utils/formatters'
import { Box, Chip, CircularProgress, Grid, SvgIcon, Typography } from '@mui/material'
import { Box, Chip, CircularProgress, Grid, Typography } from '@mui/material'
import { TokenType } from '@safe-global/safe-gateway-typescript-sdk'
import { ErrorBoundary } from '@sentry/react'
import { useContext } from 'react'
import { TxSecurityContext } from '../shared/TxSecurityContext'
import RedefineLogo from '@/public/images/transactions/redefine.svg'
import RedefineLogoDark from '@/public/images/transactions/redefine-dark-mode.svg'
import ArrowOutwardIcon from '@/public/images/transactions/outgoing.svg'
import ArrowDownwardIcon from '@/public/images/transactions/incoming.svg'

import css from './styles.module.css'
import sharedCss from '@/components/tx/security/shared/styles.module.css'
import { useDarkMode } from '@/hooks/useDarkMode'

const FungibleBalanceChange = ({
change,
Expand Down Expand Up @@ -143,7 +139,6 @@ const BalanceChanges = () => {

export const RedefineBalanceChanges = () => {
const isFeatureEnabled = useHasFeature(FEATURES.RISK_MITIGATION)
const isDarkMode = useDarkMode()

if (!isFeatureEnabled) {
return null
Expand All @@ -155,14 +150,6 @@ export const RedefineBalanceChanges = () => {
<Typography variant="subtitle2" fontWeight={700}>
Balance change
</Typography>
<Typography variant="caption" className={sharedCss.poweredBy}>
Powered by{' '}
<SvgIcon
inheritViewBox
sx={{ height: '40px', width: '52px' }}
component={isDarkMode ? RedefineLogoDark : RedefineLogo}
/>
</Typography>
</Box>
<ErrorBoundary fallback={<div>Error showing balance changes</div>}>
<BalanceChanges />
Expand Down