Skip to content

Commit

Permalink
style(wallet): Portfolio Activity Tab Padding (uplift to 1.72.x) (#26169
Browse files Browse the repository at this point in the history
)

Uplift of #26155 (squashed) to beta
  • Loading branch information
brave-builds authored Oct 24, 2024
1 parent d7efa3d commit e32e659
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,8 @@ export const PortfolioOverview = () => {
>
<ActivityWrapper
fullWidth={true}
fullHeight={true}
justifyContent='flex-start'
padding='0px 16px'
>
<TransactionsScreen />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,28 @@

import styled from 'styled-components'

// Icons
import {
NoTransactionsIconDark,
NoTransactionsIconLight
} from '../../../assets/svg-icons/empty-state-icons'

export const SearchAndFiltersRow = styled.div`
display: flex;
flex-direction: row;
flex-wrap: wrap;
width: 100%;
gap: 14px;
`

export const EmptyTransactionsIcon = styled.div`
width: 100px;
height: 100px;
background-repeat: no-repeat;
background-size: 100%;
background-position: center;
background-image: url(${NoTransactionsIconLight});
@media (prefers-color-scheme: dark) {
background-image: url(${NoTransactionsIconDark});
}
`
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ import {
LoadingSkeletonStyleProps,
Skeleton
} from '../../../components/shared/loading-skeleton/styles'
import { EmptyTransactionsIcon } from './transaction-screen.styles'

const txListItemSkeletonProps: LoadingSkeletonStyleProps = {
width: '100%',
Expand Down Expand Up @@ -249,8 +250,9 @@ export const TransactionsScreen: React.FC = () => {
<Column
fullHeight
gap={'24px'}
padding={isPanel ? '0px 0px 32px 0px' : '0px'}
>
<VerticalSpacer space={14} />
<EmptyTransactionsIcon />
<Text
textSize='18px'
isBold
Expand All @@ -263,24 +265,29 @@ export const TransactionsScreen: React.FC = () => {
</Column>
)}

<Column
fullWidth={true}
fullHeight={true}
justifyContent='flex-start'
>
{filteredTransactions.map((tx, i) => (
<PortfolioTransactionItem
key={tx.id}
transaction={tx}
onClick={onClickTransaction}
/>
))}
</Column>
{filteredTransactions.length !== 0 && (
<Column
fullWidth={true}
fullHeight={true}
justifyContent='flex-start'
>
{filteredTransactions.map((tx) => (
<PortfolioTransactionItem
key={tx.id}
transaction={tx}
onClick={onClickTransaction}
/>
))}
</Column>
)}

{txsForSelectedChain &&
txsForSelectedChain.length !== 0 &&
filteredTransactions.length === 0 && (
<Column fullHeight>
<Column
fullHeight
padding={isPanel ? '32px 0px 64px 0px' : '0px'}
>
<Text textSize='14px'>
{getLocale('braveWalletConnectHardwareSearchNothingFound')}
</Text>
Expand Down

0 comments on commit e32e659

Please sign in to comment.