fix: change validators structure

This commit is contained in:
RadoslavDimchev 2023-11-15 22:50:08 +02:00
parent 1f66d5ab5e
commit 05060998c4
2 changed files with 23 additions and 53 deletions

View File

@ -67,49 +67,41 @@ export const VALIDATORS_DATA = [
{
number: 1,
address: 'zQ3asdf9d4Gs0',
balance: 100,
income: 100,
proposals: 100,
attestations: 100,
effectiveness: 100,
deposits: 100,
rank: 100,
balance: 32.0786,
income: 0.0786,
proposals: '1/102',
attestations: '1/102',
effectiveness: 98,
status: 'Active',
},
{
number: 1,
address: 'zQ3asdf9d4Gs0',
balance: 100,
income: 100,
proposals: 100,
attestations: 100,
effectiveness: 100,
deposits: 100,
rank: 100,
balance: 32.0786,
income: 0.0786,
proposals: '1/102',
attestations: '1/102',
effectiveness: 98,
status: 'Active',
},
{
number: 1,
address: 'zQ3asdf9d4Gs0',
balance: 100,
income: 100,
proposals: 100,
attestations: 100,
effectiveness: 100,
deposits: 100,
rank: 100,
balance: 32.0786,
income: 0.0786,
proposals: '1/102',
attestations: '1/102',
effectiveness: 98,
status: 'Active',
},
{
number: 1,
address: 'zQ3asdf9d4Gs0',
balance: 100,
income: 100,
proposals: 100,
attestations: 100,
effectiveness: 100,
deposits: 100,
rank: 100,
balance: 32.0786,
income: 0.0786,
proposals: '1/102',
attestations: '1/102',
effectiveness: 98,
status: 'Active',
},
]

View File

@ -17,11 +17,9 @@ type Validator = {
address: string
balance: number
income: number
proposals: number
attestations: number
proposals: string
attestations: string
effectiveness: number
deposits: number
rank: number
status: string
}
@ -132,16 +130,6 @@ const ManagementTable = ({ tab }: ManagementTableProps) => {
Effectiveness
</Text>
</th>
<th>
<Text size={15} color={'#647084'}>
Deposits
</Text>
</th>
<th>
<Text size={15} color={'#647084'}>
Rank
</Text>
</th>
<th>
<Text size={15} color={'#647084'}>
Status
@ -181,17 +169,7 @@ const ManagementTable = ({ tab }: ManagementTableProps) => {
</td>
<td>
<Text size={15} color={'#647084'}>
{validator.effectiveness}
</Text>
</td>
<td>
<Text size={15} color={'#647084'}>
{validator.deposits}
</Text>
</td>
<td>
<Text size={15} color={'#647084'}>
{validator.rank}
{validator.effectiveness}%
</Text>
</td>
<td>