Skip to content

Commit

Permalink
Fix: adds padding-right to list of txp/unsent txs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgustavo committed Jan 9, 2025
1 parent b7fa0bf commit 39b2f7c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
6 changes: 3 additions & 3 deletions src/components/list/TransactionProposalRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import {GetContactName} from '../../store/wallet/effects/transactions/transactio
import {ContactRowProps} from './ContactRow';

const TransactionContainer = styled.TouchableOpacity`
flex: 1;
flex-direction: row;
padding: 10px ${ScreenGutter};
justify-content: center;
align-items: center;
justify-content: space-between;
`;

const IconContainer = styled.View`
Expand All @@ -19,8 +19,8 @@ const IconContainer = styled.View`

const Description = styled(BaseText)`
overflow: hidden;
margin-right: 175px;
font-size: 16px;
max-width: 150px;
`;

const Creator = styled(ListItemSubText)`
Expand Down
34 changes: 14 additions & 20 deletions src/navigation/wallet/screens/TransactionProposalNotifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ const ProposalsContainer = styled.TouchableOpacity`
align-items: center;
`;

const ProposalsInfoContainer = styled.View`
flex: 1;
`;

const CheckBoxContainer = styled.View`
flex-direction: column;
justify-content: center;
Expand Down Expand Up @@ -423,22 +419,20 @@ const TransactionProposalNotifications = () => {
{item?.txps[0]
? item.txps.map((txp: any) => (
<ProposalsContainer key={txp.id}>
<ProposalsInfoContainer>
<TransactionProposalRow
icon={TransactionIcons[txp.uiIcon]}
creator={txp.uiCreator}
time={txp.uiTime}
value={txp.uiValue || txp.feeStr}
message={txp.message}
onPressTransaction={() => onPressTxp(txp, fullWalletObj)}
hideIcon={true}
recipientCount={txp.recipientCount}
toAddress={txp.toAddress}
tokenAddress={txp.tokenAddress}
chain={txp.chain}
contactList={contactList}
/>
</ProposalsInfoContainer>
<TransactionProposalRow
icon={TransactionIcons[txp.uiIcon]}
creator={txp.uiCreator}
time={txp.uiTime}
value={txp.uiValue || txp.feeStr}
message={txp.message}
onPressTransaction={() => onPressTxp(txp, fullWalletObj)}
hideIcon={true}
recipientCount={txp.recipientCount}
toAddress={txp.toAddress}
tokenAddress={txp.tokenAddress}
chain={txp.chain}
contactList={contactList}
/>
{item.needSign ? (
<CheckBoxContainer>
<Checkbox
Expand Down

0 comments on commit 39b2f7c

Please sign in to comment.