mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-11-30 17:59:55 +00:00
- Clone Polkadot.js Apps repository - Update package.json with Pezkuwi branding - Add Pezkuwi endpoint to production chains (wss://pezkuwichain.app:9944) - Create comprehensive README for SDK UI - Set up project structure with all packages Next steps: - Apply Kurdistan colors (Kesk, Sor, Zer, Spi + Black) to UI theme - Replace logos with Pezkuwi branding - Test build and deployment
44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
TypeScript
// Copyright 2017-2025 @polkadot/app-gilt authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { QueueTotal } from './types.js';
|
|
|
|
import React, { useRef } from 'react';
|
|
|
|
import { Table } from '@polkadot/react-components';
|
|
|
|
import { useTranslation } from '../translate.js';
|
|
import Queue from './Queue.js';
|
|
|
|
interface Props {
|
|
className?: string;
|
|
queueTotals?: QueueTotal[];
|
|
}
|
|
|
|
function Queues ({ className, queueTotals }: Props): React.ReactElement<Props> {
|
|
const { t } = useTranslation();
|
|
|
|
const headerRef = useRef<([React.ReactNode?, string?, number?] | false)[]>([
|
|
[t('queues'), 'start'],
|
|
[t('participants'), 'number'],
|
|
[t('balance'), 'number']
|
|
]);
|
|
|
|
return (
|
|
<Table
|
|
className={className}
|
|
empty={queueTotals && t('No active gilt queues found.')}
|
|
header={headerRef.current}
|
|
>
|
|
{queueTotals?.map((value) => (
|
|
<Queue
|
|
key={value.index}
|
|
value={value}
|
|
/>
|
|
))}
|
|
</Table>
|
|
);
|
|
}
|
|
|
|
export default React.memo(Queues);
|