mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-11-27 16:09:55 +00:00
feat: initial Pezkuwi Apps rebrand from polkadot-apps
Rebranded terminology: - Polkadot → Pezkuwi - Kusama → Dicle - Westend → Zagros - Rococo → PezkuwiChain - Substrate → Bizinikiwi - parachain → teyrchain Custom logos with Kurdistan brand colors (#e6007a → #86e62a): - bizinikiwi-hexagon.svg - sora-bizinikiwi.svg - hezscanner.svg - heztreasury.svg - pezkuwiscan.svg - pezkuwistats.svg - pezkuwiassembly.svg - pezkuwiholic.svg
This commit is contained in:
commit
d21bfb1320
5867 files changed
+329019
No files matched your search
@@ -0,0 +1,39 @@
|
||||
// Copyright 2017-2025 @pezkuwi/app-staking authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { OwnPool } from './types.js';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import Pools from './Pools.js';
|
||||
import Summary from './Summary.js';
|
||||
import useOwnPools from './useOwnPools.js';
|
||||
import useParams from './useParams.js';
|
||||
import usePoolIds from './usePoolIds.js';
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
ownPools?: OwnPool[];
|
||||
}
|
||||
|
||||
function NominationPools ({ className, ownPools: ownPoolProp }: Props): React.ReactElement<Props> {
|
||||
const ids = usePoolIds();
|
||||
const ownPools = useOwnPools();
|
||||
const params = useParams();
|
||||
|
||||
return (
|
||||
<div className={className}>
|
||||
<Summary
|
||||
params={params}
|
||||
poolCount={ids?.length}
|
||||
/>
|
||||
<Pools
|
||||
ids={ids}
|
||||
ownPools={ownPools || ownPoolProp}
|
||||
params={params}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default React.memo(NominationPools);
|
||||
Reference in new issue
Block a user