Skip to content

Commit

Permalink
Assets page fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Nov 7, 2024
1 parent bf5f6a9 commit d95bda1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion centrifuge-app/src/pages/Loan/ExternalFinanceForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export function ExternalFinanceForm({
<AnchorTextLink href={`#/pools/${pool.id}/liquidity`}>Liquidity tab</AnchorTextLink>.
</ErrorMessage>

<Stack gap={2} mt={2} border={`1px solid ${theme.colors.borderPrimary}`} px={3} py={2} borderRadius={10}>
<Stack gap={2} border={`1px solid ${theme.colors.borderPrimary}`} px={3} py={2} borderRadius={10}>
<Text variant="heading4">Transaction summary</Text>
<Box padding={2}>
<Stack gap={1} mb={3}>
Expand Down
6 changes: 3 additions & 3 deletions centrifuge-app/src/pages/Loan/ExternalRepayForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ export function ExternalRepayForm({
outstanding interest ({formatBalance(maxInterest, displayCurrency, 2)}).
</ErrorMessage>

<Stack gap={2} mt={2} border={`1px solid ${theme.colors.borderPrimary}`} px={3} py={2} borderRadius={10}>
<Stack gap={2} border={`1px solid ${theme.colors.borderPrimary}`} px={3} py={2} borderRadius={10}>
<Stack gap={1} mb={2}>
<Text variant="heading4">Transaction summary</Text>
<Box paddingX={2} mt={2}>
<Box mt={2}>
<Shelf justifyContent="space-between">
<Tooltips
type={maxAvailable === UNLIMITED ? 'repayFormAvailableBalanceUnlimited' : 'repayFormAvailableBalance'}
Expand All @@ -350,7 +350,7 @@ export function ExternalRepayForm({
</Box>
</Stack>

<Box paddingX={2}>
<Box>
{destination === 'reserve' ? (
<InlineFeedback status="default">
<Text variant="body2" color="statusDefault">
Expand Down
4 changes: 2 additions & 2 deletions centrifuge-app/src/pages/Loan/FinanceForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ function InternalFinanceForm({
</Stack>
</Box>

<Stack gap={2} mt={2} border={`1px solid ${theme.colors.borderPrimary}`} px={3} py={2} borderRadius={10}>
<Stack gap={2} border={`1px solid ${theme.colors.borderPrimary}`} px={3} py={2} borderRadius={10}>
<Text variant="heading4">Transaction summary</Text>
<Box padding={2}>
<Box>
<Stack gap={1} mb={3}>
<Shelf justifyContent="space-between">
<Tooltip
Expand Down
4 changes: 2 additions & 2 deletions centrifuge-app/src/pages/Loan/RepayForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ function InternalRepayForm({
</Stack>
</Box>

<Stack gap={2} mt={2} border={`1px solid ${theme.colors.borderPrimary}`} px={3} py={2} borderRadius={10}>
<Stack gap={2} border={`1px solid ${theme.colors.borderPrimary}`} px={3} py={2} borderRadius={10}>
<Text variant="heading4">Transaction summary</Text>
<Box paddingX={2} mt={2}>
<Box mt={2}>
<Stack gap={1}>
<Shelf justifyContent="space-between">
<Tooltips
Expand Down
2 changes: 1 addition & 1 deletion centrifuge-app/src/pages/Loan/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function ActionButtons({ loan }: { loan: LoanType }) {
</Button>
) : null}
{loan.outstandingDebt.gtn(0) && (
<Button onClick={() => setRepayShown(true)} small variant="inverted">
<Button onClick={() => setRepayShown(true)} small variant="secondary">
{isCashLoan(loan) ? 'Withdraw' : isExternalLoan(loan) ? 'Sell' : 'Repay'}
</Button>
)}
Expand Down
2 changes: 1 addition & 1 deletion centrifuge-app/src/pages/Pool/Assets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function PoolDetailAssets() {
},
{
label: `Accrued fees (${pool.currency.symbol})`,
value: `-${formatBalance(pool.fees.totalPaid)}`,
value: `${pool.fees.totalPaid.isZero() ? '' : '-'}${formatBalance(pool.fees.totalPaid)}`,
heading: false,
},
]
Expand Down

0 comments on commit d95bda1

Please sign in to comment.