Skip to content

Commit

Permalink
Merge pull request #45 from multiversx/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
radumojic authored Jan 31, 2024
2 parents 562d9c2 + abe7324 commit f2981c6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Overlay/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export const Overlay = ({
</Tooltip>
)}
>
<div className={className ?? 'text-truncate'}>{children}</div>
<span className={className ?? 'text-truncate'}>{children}</span>
</OverlayTrigger>
);
2 changes: 1 addition & 1 deletion src/components/ProvidersTable/ProvidersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const ProvidersTable = ({
<SortTh name='Nodes' field='numNodes' />
</th>
<th>
<SortTh name='Computed APR' field='apr' />
<SortTh name='Computed Net APR' field='apr' />
</th>
<th>
<SortTh name='Service fee' field='serviceFee' />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const IdentityCard = ({ identity }: { identity: IdentityType }) => {
/>

<StatsCard
title='Computed APR'
title='Computed Gross APR'
value={<>{identity.apr ? `${identity.apr}%` : 'N/A'}</>}
className='detail-card'
/>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/ProviderLayout/ProviderDetailsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const ProviderDetailsCard = ({
)}
</CardItem>

<CardItem title='Computed APR' icon={faLeaf}>
<CardItem title='Computed Net APR' icon={faLeaf}>
{provider.apr ? (
<>
{provider.apr}
Expand Down
8 changes: 8 additions & 0 deletions src/widgets/AccountsStatsCard/AccountsStatsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { useEffect } from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { useSelector } from 'react-redux';

import { Overlay } from 'components';
import { useFetchGrowthHero, useIsMainnet } from 'hooks';
import { faInfoCircle } from 'icons/regular';
import { faCircleBolt } from 'icons/solid';
import {
growthHeroSelector,
Expand Down Expand Up @@ -34,6 +36,12 @@ export const AccountsStatsCard = () => {
<StatsCard title='Total Accounts' value={totalAccounts}>
<FontAwesomeIcon icon={faCircleBolt} className='me-2' />
{activeAccountsToday} active today
<Overlay
title='Number of accounts that have sent or received transactions in the last 24 hours'
className='d-inline cursor-context'
>
<FontAwesomeIcon icon={faInfoCircle} className='ms-2' />
</Overlay>
</StatsCard>
) : (
<StatsCard title='Total Accounts' value={accounts} />
Expand Down
3 changes: 2 additions & 1 deletion src/widgets/EpochProgressRing/EpochProgressRing.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import BigNumber from 'bignumber.js';
import classNames from 'classnames';

import { ELLIPSIS } from 'appConstants';
import { ProgressRing } from 'components';
Expand Down Expand Up @@ -31,7 +32,7 @@ export const EpochProgressRing = ({
)}
</div>
<div
className='description'
className={classNames('description', { 'cursor-context': showTime })}
{...(showTime ? { title: epochTimeRemaining } : {})}
>
{roundsLeft && roundsLeft >= 0 ? (
Expand Down

0 comments on commit f2981c6

Please sign in to comment.