Skip to content

Commit

Permalink
Add tooltip to total nav
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Oct 30, 2024
1 parent 484b28d commit 8832b00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions centrifuge-app/src/components/Tooltips.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ export const tooltipText = {
label: 'Expense ratio',
body: 'The operating expenses of the fund as a percentage of the total NAV',
},
totalNavMinus: {
label: 'Total NAV',
body: 'Total nav minus accrued fees',
},
}

export type TooltipsProps = {
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 @@ -81,7 +81,7 @@ export function PoolDetailAssets() {

const pageSummaryData: { label: React.ReactNode; value: React.ReactNode; heading?: boolean }[] = [
{
label: `Total NAV (${pool.currency.symbol})`,
label: <Tooltips label={`Total NAV (${pool.currency.symbol})`} type="totalNavMinus" />,
value: formatBalance(pool.nav.total.toDecimal()),
heading: true,
},
Expand Down

0 comments on commit 8832b00

Please sign in to comment.