forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A0-1847: Add support for disuniting aura and alephbft (#71)
* A0-1847: Rename CurrentList to BlockProductionCommitteeList * A0-1847: Add hook returning AlephBFT committee for session * A0-1847: Add UI * A0-1847: Add missing headers * A0-1847: Fill in values when `nextFinalityCommittee` is not defined * A0-1847: Fix linter errors * A0-1847: Display finalizing committee size; improve styles * A0-1847: Update translations
- Loading branch information
1 parent
fe7a3ce
commit e934011
Showing
17 changed files
with
186 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,4 @@ | |
"voter": "voter", | ||
"websites": "websites", | ||
"yes": "yes" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,4 +107,4 @@ | |
"votes": "votes", | ||
"{{blocks}} blocks": "{{blocks}} blocks", | ||
"{{when}} (est.)": "{{when}} (est.)" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
packages/page-staking/src/Performance/AlephBFTCommitteeList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright 2017-2023 @polkadot/react-components authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import React from 'react'; | ||
|
||
import { AddressSmall, Table } from '@polkadot/react-components'; | ||
|
||
import { useTranslation } from '../translate.js'; | ||
|
||
type Props = { | ||
committeeAddresses: string[] | undefined; | ||
}; | ||
|
||
const AlephBFTCommitteeList = ({ committeeAddresses }: Props) => { | ||
const { t } = useTranslation(); | ||
|
||
const header: [string][] = [ | ||
[t('Finality committee')] | ||
]; | ||
|
||
const messageOnEmpty = committeeAddresses && t("Data isn't available."); | ||
|
||
return ( | ||
<Table | ||
empty={messageOnEmpty} | ||
header={header} | ||
> | ||
{committeeAddresses?.map((address) => ( | ||
<tr key={address}> | ||
<td><AddressSmall value={address} /></td> | ||
</tr> | ||
))} | ||
</Table> | ||
); | ||
}; | ||
|
||
export default AlephBFTCommitteeList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.