mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-10-20 18:56:30 +00:00
- api/constants: only PEZKUWI_GENESIS and ZAGROS_GENESIS remain. The Zagros value was a placeholder from before its launch; it is now the live chain's genesis (0x1b0b4727…2cd5, measured). - Inflation, proposal thresholds and governance tracks keep the Pezkuwi entries; the Dicle, Kulupu, Cere, Vara, Joystream, zkVerify, Dock, Neatcoin and NFTMart ones go, as do the dicle tracks. - getTeleportWeight was used nowhere: removed. - page-society: the Dicle-only "design samples" button and its canary drawing go, with their table column. - page-assets: the next-id rule keyed on Polkadot's and Kusama's asset hub genesis never matched a Pezkuwi chain; removed, no change there. - ParaLink: the Subscan link went to scan.pezkuwichain.io, which does not resolve; removed (coretime keeps the homepage link). - typesBundle generator: no unused sort-keys directive when empty.
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
// Copyright 2017-2026 @pezkuwi/app-society authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { MapMember } from '../types.js';
|
|
|
|
import React, { useRef } from 'react';
|
|
|
|
import { Table } from '@pezkuwi/react-components';
|
|
import { useBestNumber } from '@pezkuwi/react-hooks';
|
|
|
|
import { useTranslation } from '../translate.js';
|
|
import Member from './Member.js';
|
|
|
|
interface Props {
|
|
className?: string;
|
|
mapMembers?: MapMember[];
|
|
}
|
|
|
|
function Members ({ className = '', mapMembers }: Props): React.ReactElement<Props> {
|
|
const { t } = useTranslation();
|
|
const bestNumber = useBestNumber();
|
|
|
|
const headerRef = useRef<[React.ReactNode?, string?, number?][]>([
|
|
[t('members'), 'start', 2],
|
|
[t('voted on'), 'start'],
|
|
[t('strikes')]
|
|
]);
|
|
|
|
return (
|
|
<Table
|
|
className={className}
|
|
empty={mapMembers && t('No active members')}
|
|
header={headerRef.current}
|
|
>
|
|
{mapMembers?.map((value): React.ReactNode => (
|
|
<Member
|
|
bestNumber={bestNumber}
|
|
key={value.key}
|
|
value={value}
|
|
/>
|
|
))}
|
|
</Table>
|
|
);
|
|
}
|
|
|
|
export default React.memo(Members);
|