Skip to content

Commit

Permalink
fixup! feat(voting): rebase on develop
Browse files Browse the repository at this point in the history
  • Loading branch information
phonktown committed Sep 23, 2024
1 parent 3b0ad3c commit f55d127
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function DelegatorsList({
eventsVoted,
defaultExpanded,
}: Props) {
const TRANSACTION_LIMIT = 5
const TRANSACTION_LIMIT = 100

const initialCheckedItems = useMemo(
() =>
Expand Down
12 changes: 6 additions & 6 deletions modules/votes/ui/VotePowerInfo/VotePowerInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Text } from '@lidofinance/lido-ui'
import { InfoWrap, VotingPower, Amount } from './VotePowerInfoStyle'
import { useGovernanceSymbol } from '../../../tokens/hooks/useGovernanceSymbol'
import { useGovernanceSymbol } from 'modules/tokens/hooks/useGovernanceSymbol'
import { formatBalance } from 'modules/blockChain/utils/formatBalance'
import { useDelegatorsInfo } from '../../../delegation/hooks/useDelegatorsInfo'
import { useDelegators } from 'modules/delegation/hooks/useDelegators'
import { BigNumber } from 'ethers'

interface Props {
Expand All @@ -12,8 +12,8 @@ interface Props {
export function VotePowerInfo({ ownVotePower }: Props) {
const { data: govSymbol } = useGovernanceSymbol()
const {
data: { totalCount, fetchedValue },
} = useDelegatorsInfo()
data: { nonZeroDelegators, totalVotingPower },
} = useDelegators()

return (
<InfoWrap>
Expand All @@ -25,13 +25,13 @@ export function VotePowerInfo({ ownVotePower }: Props) {
{formatBalance(ownVotePower || BigNumber.from(0))} {govSymbol}
</Amount>
</VotingPower>
{totalCount > 0 && (
{nonZeroDelegators.length > 0 && (
<VotingPower>
<Text as="span" color="secondary" size="xxs">
Delegated voting power
</Text>
<Amount>
{formatBalance(fetchedValue)} {govSymbol}
{formatBalance(totalVotingPower)} {govSymbol}
</Amount>
</VotingPower>
)}
Expand Down

0 comments on commit f55d127

Please sign in to comment.