diff --git a/.changelog/2258.trivial.md b/.changelog/2258.trivial.md
new file mode 100644
index 0000000000..a413e58646
--- /dev/null
+++ b/.changelog/2258.trivial.md
@@ -0,0 +1 @@
+Update Box element.
diff --git a/src/app/components/Account/ContractCreatorInfo.tsx b/src/app/components/Account/ContractCreatorInfo.tsx
index 47fbc2c87d..09b037bd3d 100644
--- a/src/app/components/Account/ContractCreatorInfo.tsx
+++ b/src/app/components/Account/ContractCreatorInfo.tsx
@@ -44,7 +44,7 @@ export const ContractCreatorInfo: FC<{
) : (
<>
-
{t('contract.createdAt')}
+ {t('contract.createdAt')}
>
)
diff --git a/src/app/components/Link/index.tsx b/src/app/components/Link/index.tsx
index ed6b2c8a7b..479c603fb9 100644
--- a/src/app/components/Link/index.tsx
+++ b/src/app/components/Link/index.tsx
@@ -4,7 +4,6 @@ import { useScreenSize } from '../../hooks/useScreensize'
import { Link as UilLink } from '@oasisprotocol/ui-library/src/components/link'
import { trimLongString } from '../../utils/trimLongString'
import { HighlightedText } from '../HighlightedText'
-import Box from '@mui/material/Box'
import { AccountMetadataSourceIndicator } from '../Account/AccountMetadataSourceIndicator'
import { MaybeWithTooltip } from '../Tooltip/MaybeWithTooltip'
import { WithHoverHighlighting } from '../HoverHighlightingContext/WithHoverHighlighting'
@@ -41,17 +40,17 @@ export const Link: FC = ({
hasName && (withSourceIndicator || isTablet) ? (
{name && (
-
- {name}
+
+
{name}
{withSourceIndicator && (
<>
-
>
)}
-
+
)}
- {address}
+ {address}
) : isTablet ? (
address
@@ -59,7 +58,7 @@ export const Link: FC = ({
return (
-
+
{hasName && withSourceIndicator &&
}
{isTablet ? (
@@ -75,7 +74,7 @@ export const Link: FC = ({
/>
)}
-
+
)
}
diff --git a/src/app/components/PageLayout/index.tsx b/src/app/components/PageLayout/index.tsx
index 7c8ac2f9a1..10a0c448d5 100644
--- a/src/app/components/PageLayout/index.tsx
+++ b/src/app/components/PageLayout/index.tsx
@@ -1,28 +1,23 @@
import { FC, PropsWithChildren, ReactNode } from 'react'
import { Header } from './Header'
import { Footer } from './Footer'
-import Box from '@mui/material/Box'
import { useScreenSize } from '../../hooks/useScreensize'
-import { styled, useTheme } from '@mui/material/styles'
import { BuildBanner } from '../BuildBanner'
import { useScopeParam } from '../../hooks/useScopeParam'
import { NetworkOfflineBanner, RuntimeOfflineBanner, ConsensusOfflineBanner } from '../OfflineBanner'
import { Search } from '../Search'
import { useIsApiReachable } from '../OfflineBanner/hook'
+import useTheme from '@mui/material/styles/useTheme'
interface PageLayoutProps {
mobileFooterAction?: ReactNode
}
-export const StyledMain = styled('main')({
- minHeight: '75vh',
-})
-
export const PageLayout: FC> = ({ children, mobileFooterAction }) => {
- const theme = useTheme()
const { isMobile } = useScreenSize()
const scope = useScopeParam()
const isApiReachable = useIsApiReachable(scope?.network ?? 'mainnet').reachable
+ const theme = useTheme()
return (
<>
@@ -30,45 +25,23 @@ export const PageLayout: FC> = ({ children, m
{scope && scope.layer !== 'consensus' && }
{scope && scope.layer === 'consensus' && }
-
+
-
{!isMobile && (
-
+
-
+
)}
- {children}
+ {children}
-
-
+
+
>
)
}
diff --git a/src/app/components/RuntimeEvents/RuntimeEventDetails.tsx b/src/app/components/RuntimeEvents/RuntimeEventDetails.tsx
index eacf2b3b47..96d2703aef 100644
--- a/src/app/components/RuntimeEvents/RuntimeEventDetails.tsx
+++ b/src/app/components/RuntimeEvents/RuntimeEventDetails.tsx
@@ -19,7 +19,6 @@ import { exhaustedTypeWarning } from '../../../types/errors'
import { LongDataDisplay } from '../LongDataDisplay'
import { parseEvmEvent } from '../../utils/parseEvmEvent'
import { TokenTransferIcon } from '../Tokens/TokenTransferIcon'
-import Box from '@mui/material/Box'
import StreamIcon from '@mui/icons-material/Stream'
import LocalFireDepartmentIcon from '@mui/icons-material/LocalFireDepartment'
import { getPreciseNumberFormat } from '../../../locales/getPreciseNumberFormat'
@@ -158,9 +157,9 @@ export const EventTypeIcon: FC<{
}
return (
-
+
{eventTypeIcons[eventType]}
-
+
)
}
@@ -317,11 +316,11 @@ const RuntimeEventDetailsInner: FC<{
}
return (
-
+
-
+
{event.evm_log_params && event.evm_log_params.length > 0 && (
diff --git a/src/app/components/RuntimeEvents/RuntimeEventsDetailedList.tsx b/src/app/components/RuntimeEvents/RuntimeEventsDetailedList.tsx
index 30c4b6d27e..512a2974c7 100644
--- a/src/app/components/RuntimeEvents/RuntimeEventsDetailedList.tsx
+++ b/src/app/components/RuntimeEvents/RuntimeEventsDetailedList.tsx
@@ -6,7 +6,6 @@ import { useTranslation } from 'react-i18next'
import { CardEmptyState } from '../CardEmptyState'
import { TextSkeleton } from '../Skeleton'
import { RuntimeEventDetails } from './RuntimeEventDetails'
-import Box from '@mui/material/Box'
import { AppErrors } from '../../../types/errors'
import { EmptyState } from '../EmptyState'
import { CardDivider } from '../../components/Divider'
@@ -56,9 +55,9 @@ export const RuntimeEventsDetailedList: FC<{
))}
{pagination && (
-
+
)}
>
)
diff --git a/src/app/components/Select/index.tsx b/src/app/components/Select/index.tsx
index bf49701d58..2e0cbce0e3 100644
--- a/src/app/components/Select/index.tsx
+++ b/src/app/components/Select/index.tsx
@@ -1,7 +1,6 @@
import { Select as SelectUnstyled, SelectProps, selectClasses, SelectRootSlotProps } from '@mui/base/Select'
import { Option, optionClasses } from '@mui/base/Option'
import { styled } from '@mui/material/styles'
-import Box from '@mui/material/Box'
import React, {
ForwardedRef,
forwardRef,
@@ -226,7 +225,7 @@ const SelectCmp = ({
const withLight = { light }
return (
-
+
{label && }
id={selectId}
@@ -246,7 +245,7 @@ const SelectCmp = ({
))}
-
+
)
}
diff --git a/src/app/components/Table/index.tsx b/src/app/components/Table/index.tsx
index dade9949a7..2d4878b3d7 100644
--- a/src/app/components/Table/index.tsx
+++ b/src/app/components/Table/index.tsx
@@ -1,6 +1,5 @@
import { ComponentProps, FC, ReactNode } from 'react'
import { styled } from '@mui/material/styles'
-import Box from '@mui/material/Box'
import { Skeleton } from '@oasisprotocol/ui-library/src/components/ui/skeleton'
import {
Table as BaseTable,
@@ -164,9 +163,9 @@ export const Table: FC = ({
{pagination && (
-
+
)}
>
)
diff --git a/src/app/components/TableCellAge/index.tsx b/src/app/components/TableCellAge/index.tsx
index f9a1e2b796..784feca5c4 100644
--- a/src/app/components/TableCellAge/index.tsx
+++ b/src/app/components/TableCellAge/index.tsx
@@ -1,7 +1,6 @@
import { FC } from 'react'
import Tooltip from '@mui/material/Tooltip'
import { formatDistanceToNow } from '../../utils/dateFormatter'
-import Box from '@mui/material/Box'
import { useFormattedTimestamp } from '../../hooks/useFormattedTimestamp'
import { tooltipDelay } from '../../../styles/theme'
import { formatDistanceStrict } from 'date-fns/formatDistanceStrict'
@@ -34,14 +33,14 @@ export const TableCellAge: FC<{ sinceTimestamp: string }> = ({ sinceTimestamp })
const title = (
{defaultFormatted}
- {distanceWithSuffix}
+ {distanceWithSuffix}
)
const content = ageHeaderType === TableAgeType.DateTime ? tableFormatted : distance
return (
- {content}
+ {content}
)
}
diff --git a/src/app/components/Tokens/TokenDetails.tsx b/src/app/components/Tokens/TokenDetails.tsx
index 20c5854313..649e10ac71 100644
--- a/src/app/components/Tokens/TokenDetails.tsx
+++ b/src/app/components/Tokens/TokenDetails.tsx
@@ -9,8 +9,6 @@ import { CopyToClipboard } from '../CopyToClipboard'
import { AccountLink } from '../Account/AccountLink'
import { DashboardLink } from '../../pages/ParatimeDashboardPage/DashboardLink'
import { VerificationIcon } from '../ContractVerificationIcon'
-import Box from '@mui/material/Box'
-import { COLORS } from '../../../styles/theme/colors'
import { TokenTypeTag } from './TokenList'
import { RoundedBalance } from '../RoundedBalance'
import { HighlightedText } from '../HighlightedText'
@@ -44,9 +42,9 @@ export const TokenDetails: FC<{
address={token.eth_contract_addr ?? token.contract_addr}
name={token.name}
/>
-
+
-
+
{t('common.type')}
@@ -56,14 +54,14 @@ export const TokenDetails: FC<{
{t(isMobile ? 'common.smartContract_short' : 'common.smartContract')}
-
+
{t('contract.verification.title')}
diff --git a/src/app/components/Tokens/TokenLinkWithIcon.tsx b/src/app/components/Tokens/TokenLinkWithIcon.tsx
index a85925db35..7480fadcb6 100644
--- a/src/app/components/Tokens/TokenLinkWithIcon.tsx
+++ b/src/app/components/Tokens/TokenLinkWithIcon.tsx
@@ -3,8 +3,6 @@ import { FC } from 'react'
import { SearchScope } from '../../../types/searchScope'
import { TokenLink } from './TokenLink'
import { useAccountMetadata } from '../../hooks/useAccountMetadata'
-import Box from '@mui/material/Box'
-import { COLORS } from '../../../styles/theme/colors'
import { InitialsAvatar } from '../AccountAvatar/InitialsAvatar'
import Tooltip from '@mui/material/Tooltip'
import { Trans, useTranslation } from 'react-i18next'
@@ -18,7 +16,7 @@ export const TokenLinkWithIcon: FC<{
const { t } = useTranslation()
const { metadata } = useAccountMetadata(scope, address)
return (
-
+
-
+
{metadata?.icon ? (

) : (
@@ -45,7 +43,7 @@ export const TokenLinkWithIcon: FC<{
style={{ maxHeight: 32, margin: '-4px 0' }}
/>
)}
-
+
-
- {metadata?.origin && ` (${metadata.origin})`}
-
+ {metadata?.origin && ` (${metadata.origin})`}
-
+
)
}
diff --git a/src/app/components/Tokens/TokenTransfers.tsx b/src/app/components/Tokens/TokenTransfers.tsx
index 130c2ed12d..f0649077ff 100644
--- a/src/app/components/Tokens/TokenTransfers.tsx
+++ b/src/app/components/Tokens/TokenTransfers.tsx
@@ -1,6 +1,5 @@
import { FC } from 'react'
import { Trans, useTranslation } from 'react-i18next'
-import Box from '@mui/material/Box'
import { Table, TableCellAlign, TableColProps } from '../Table'
import { EvmTokenType, RuntimeEvent } from '../../../oasis-nexus/api'
import { TablePaginationProps } from '../Table/TablePagination'
@@ -138,15 +137,7 @@ export const TokenTransfers: FC = ({
isMinting || fromAddress === undefined ? (
''
) : (
-
+
= ({
labelOnly={!!ownAddress && fromAddress === ownAddress}
/>
-
+
),
},
{
diff --git a/src/app/components/Tooltip/MaybeWithTooltip.tsx b/src/app/components/Tooltip/MaybeWithTooltip.tsx
index 93982cdebb..6e04ef7328 100644
--- a/src/app/components/Tooltip/MaybeWithTooltip.tsx
+++ b/src/app/components/Tooltip/MaybeWithTooltip.tsx
@@ -1,7 +1,5 @@
import { FC, ReactNode } from 'react'
import Tooltip from '@mui/material/Tooltip'
-import Box from '@mui/material/Box'
-import { useScreenSize } from '../../hooks/useScreensize'
type MaybeWithTooltipProps = {
/**
@@ -26,25 +24,10 @@ type MaybeWithTooltipProps = {
* A component to display some content with or without a tooltip
*/
export const MaybeWithTooltip: FC = ({ title, children, spanClassName }) => {
- const { isMobile } = useScreenSize()
-
return (
- {title}
-
- }
+ title={{title}
}
disableFocusListener={!title}
disableHoverListener={!title}
disableTouchListener={!title}