mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-06-14 13:21:02 +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:
@@ -0,0 +1,57 @@
|
||||
// Copyright 2017-2025 @pezkuwi/app-staking authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Validator } from '../../types.js';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { useToggle } from '@pezkuwi/react-hooks';
|
||||
|
||||
import Bottom from '../Active/Row/Bottom.js';
|
||||
import Middle from '../Active/Row/Middle.js';
|
||||
import Top from '../Active/Row/Top.js';
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
toggleFavorite: (stashId: string) => void;
|
||||
validator: Validator;
|
||||
}
|
||||
|
||||
interface PropsExpanded {
|
||||
className?: string;
|
||||
validator: Validator;
|
||||
}
|
||||
|
||||
function EntryExpanded ({ className = '' }: PropsExpanded): React.ReactElement<PropsExpanded> {
|
||||
return <td className={className} />;
|
||||
}
|
||||
|
||||
function Entry ({ className = '', toggleFavorite, validator }: Props): React.ReactElement<Props> {
|
||||
const [isExpanded, toggleExpanded] = useToggle();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Top
|
||||
className={className}
|
||||
isExpanded={isExpanded}
|
||||
toggleExpanded={toggleExpanded}
|
||||
toggleFavorite={toggleFavorite}
|
||||
validator={validator}
|
||||
/>
|
||||
<Middle
|
||||
className={className}
|
||||
isExpanded={isExpanded}
|
||||
>
|
||||
<td />
|
||||
</Middle>
|
||||
<Bottom
|
||||
className={className}
|
||||
isExpanded={isExpanded}
|
||||
>
|
||||
<EntryExpanded validator={validator} />
|
||||
</Bottom>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default React.memo(Entry);
|
||||
Reference in New Issue
Block a user