diff --git a/.env.example b/.env.example
index 6b4a7f03..51bd50d3 100644
--- a/.env.example
+++ b/.env.example
@@ -29,4 +29,3 @@ REACT_APP_APP_VERSION=$npm_package_version
# For Apps
REACT_APP_GNOSIS_APPS_URL=https://safe-apps.staging.gnosisdev.com
-REACT_APP_APPS_DISABLED=false
diff --git a/src/routes/safe/components/Balances/index.tsx b/src/routes/safe/components/Balances/index.tsx
index 5ef33867..551b73d5 100644
--- a/src/routes/safe/components/Balances/index.tsx
+++ b/src/routes/safe/components/Balances/index.tsx
@@ -15,10 +15,10 @@ import Row from 'src/components/layout/Row'
import { SAFELIST_ADDRESS } from 'src/routes/routes'
import SendModal from 'src/routes/safe/components/Balances/SendModal'
import CurrencyDropdown from 'src/routes/safe/components/CurrencyDropdown'
-import { useFetchTokens } from 'src/routes/safe/container/hooks/useFetchTokens'
import { safeFeaturesEnabledSelector, safeParamAddressFromStateSelector } from 'src/routes/safe/store/selectors'
import { history } from 'src/store/index'
import { wrapInSuspense } from 'src/utils/wrapInSuspense'
+import { useFetchTokens } from '../../container/Hooks/useFetchTokens'
const Collectibles = React.lazy(() => import('src/routes/safe/components/Balances/Collectibles'))
const Coins = React.lazy(() => import('src/routes/safe/components/Balances/Coins'))
diff --git a/src/routes/safe/components/Layout/Tabs/index.tsx b/src/routes/safe/components/Layout/Tabs/index.tsx
index 29eea616..33c304b2 100644
--- a/src/routes/safe/components/Layout/Tabs/index.tsx
+++ b/src/routes/safe/components/Layout/Tabs/index.tsx
@@ -100,17 +100,15 @@ const TabsComponent = (props: Props) => {
label={TransactionsLabel}
value={`${match.url}/transactions`}
/>
- {process.env.REACT_APP_APPS_DISABLED !== 'true' && (
-
- )}
+
{
wrapInSuspense(, null)} />
wrapInSuspense(, null)} />
- {process.env.REACT_APP_APPS_DISABLED !== 'true' && (
- wrapInSuspense(, null)}
- />
- )}
+ wrapInSuspense(, null)}
+ />
wrapInSuspense(, null)} />
wrapInSuspense(, null)} />
diff --git a/src/routes/safe/components/Transactions/TxsTable/ExpandedTx/TxDescription/index.tsx b/src/routes/safe/components/Transactions/TxsTable/ExpandedTx/TxDescription/index.tsx
index 0d2e4f82..a3548e12 100644
--- a/src/routes/safe/components/Transactions/TxsTable/ExpandedTx/TxDescription/index.tsx
+++ b/src/routes/safe/components/Transactions/TxsTable/ExpandedTx/TxDescription/index.tsx
@@ -135,22 +135,14 @@ const SettingsDescription = ({ action, addedOwner, newThreshold, removedOwner })
)
}
-const CustomDescription = ({ amount = 0, classes, data, recipient }: any) => {
+const TxData = (props) => {
+ const { classes, data } = props
const [showTxData, setShowTxData] = useState(false)
- const recipientName = useSelector((state) => getNameFromAddressBook(state, recipient))
+ const showExpandBtn = data.length > 20
return (
- <>
-
- Send {amount} to:
- {recipientName ? (
-
- ) : (
-
- )}
-
-
- Data (hex encoded):
-
+
+ {showExpandBtn ? (
+ <>
{showTxData ? (
<>
{data}{' '}
@@ -178,7 +170,29 @@ const CustomDescription = ({ amount = 0, classes, data, recipient }: any) => {
>
)}
-
+ >
+ ) : (
+ data
+ )}
+
+ )
+}
+
+const CustomDescription = ({ amount = 0, classes, data, recipient }: any) => {
+ const recipientName = useSelector((state) => getNameFromAddressBook(state, recipient))
+ return (
+ <>
+
+ Send {amount} to:
+ {recipientName ? (
+
+ ) : (
+
+ )}
+
+
+ Data (hex encoded):
+
>
)
diff --git a/src/routes/safe/container/index.jsx b/src/routes/safe/container/index.jsx
deleted file mode 100644
index 92efece0..00000000
--- a/src/routes/safe/container/index.jsx
+++ /dev/null
@@ -1,76 +0,0 @@
-import * as React from 'react'
-import { useState } from 'react'
-import { useSelector } from 'react-redux'
-
-import Page from 'src/components/layout/Page'
-
-import Layout from 'src/routes/safe/components/Layout'
-import { useCheckForUpdates } from 'src/routes/safe/container/hooks/useCheckForUpdates'
-import { useLoadSafe } from 'src/routes/safe/container/hooks/useLoadSafe'
-import { safeParamAddressFromStateSelector } from 'src/routes/safe/store/selectors'
-
-const INITIAL_STATE = {
- sendFunds: {
- isOpen: false,
- selectedToken: undefined,
- },
- showReceive: false,
-}
-
-const SafeView = () => {
- const [state, setState] = useState(INITIAL_STATE)
- const safeAddress = useSelector(safeParamAddressFromStateSelector)
-
- useLoadSafe(safeAddress)
- useCheckForUpdates()
-
- const onShow = (action) => () => {
- setState((prevState) => ({
- ...prevState,
- [`show${action}`]: true,
- }))
- }
-
- const onHide = (action) => () => {
- setState((prevState) => ({
- ...prevState,
- [`show${action}`]: false,
- }))
- }
-
- const showSendFunds = (token) => {
- setState((prevState) => ({
- ...prevState,
- sendFunds: {
- isOpen: true,
- selectedToken: token,
- },
- }))
- }
-
- const hideSendFunds = () => {
- setState((prevState) => ({
- ...prevState,
- sendFunds: {
- isOpen: false,
- selectedToken: undefined,
- },
- }))
- }
- const { sendFunds, showReceive } = state
-
- return (
-
-
-
- )
-}
-
-export default SafeView
diff --git a/src/routes/safe/container/index.tsx b/src/routes/safe/container/index.tsx
index 92efece0..eac833df 100644
--- a/src/routes/safe/container/index.tsx
+++ b/src/routes/safe/container/index.tsx
@@ -5,9 +5,10 @@ import { useSelector } from 'react-redux'
import Page from 'src/components/layout/Page'
import Layout from 'src/routes/safe/components/Layout'
-import { useCheckForUpdates } from 'src/routes/safe/container/hooks/useCheckForUpdates'
-import { useLoadSafe } from 'src/routes/safe/container/hooks/useLoadSafe'
+
import { safeParamAddressFromStateSelector } from 'src/routes/safe/store/selectors'
+import { useCheckForUpdates } from './hooks/useCheckForUpdates'
+import { useLoadSafe } from './hooks/useLoadSafe'
const INITIAL_STATE = {
sendFunds: {
diff --git a/src/theme/mui.ts b/src/theme/mui.ts
index 4dc10638..bee2a175 100644
--- a/src/theme/mui.ts
+++ b/src/theme/mui.ts
@@ -108,6 +108,7 @@ const theme = createMuiTheme({
MuiStepper: {
root: {
padding: `${lg} 0 0 15px`,
+ background: 'transparent',
},
},
MuiIconButton: {