add padding to account charts
This commit is contained in:
parent
9c592c53b3
commit
56a24c0a8d
|
@ -324,7 +324,9 @@ const AccountPage = () => {
|
|||
/>
|
||||
) : null}
|
||||
</>
|
||||
) : chartToShow === 'account-value' ? (
|
||||
) : (
|
||||
<div className="p-6">
|
||||
{chartToShow === 'account-value' ? (
|
||||
<AccountChart
|
||||
chartToShow="account-value"
|
||||
data={performanceData}
|
||||
|
@ -345,13 +347,16 @@ const AccountPage = () => {
|
|||
chartToShow="cumulative-interest-value"
|
||||
data={performanceData.map((d) => ({
|
||||
interest_value:
|
||||
d.borrow_interest_cumulative_usd + d.deposit_interest_cumulative_usd,
|
||||
d.borrow_interest_cumulative_usd +
|
||||
d.deposit_interest_cumulative_usd,
|
||||
time: d.time,
|
||||
}))}
|
||||
hideChart={handleHideChart}
|
||||
mangoAccount={mangoAccount!}
|
||||
yKey="interest_value"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue