mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-26 01:27:57 +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,47 @@
|
||||
// Copyright 2017-2025 @pezkuwi/app-referenda authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@pezkuwi/util';
|
||||
import type { PalletReferenda, TrackDescription } from '../../types.js';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { Dropdown, styled } from '@pezkuwi/react-components';
|
||||
|
||||
import { useTranslation } from '../../translate.js';
|
||||
import useTrackOptions from './useTrackOptions.js';
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
exclude?: (BN | number)[];
|
||||
include?: (BN | number)[];
|
||||
onChange: (trackId: number) => void;
|
||||
palletReferenda: PalletReferenda;
|
||||
tracks: TrackDescription[];
|
||||
}
|
||||
|
||||
function TrackDropdown ({ className, exclude, include, onChange, palletReferenda, tracks }: Props): React.ReactElement<Props> | null {
|
||||
const { t } = useTranslation();
|
||||
const trackOpts = useTrackOptions(palletReferenda, tracks, include, exclude);
|
||||
|
||||
return (
|
||||
<Dropdown
|
||||
className={className}
|
||||
defaultValue={trackOpts[0].value}
|
||||
label={t('submission track')}
|
||||
onChange={onChange}
|
||||
options={trackOpts}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export default React.memo(styled(TrackDropdown)`
|
||||
.trackOption {
|
||||
.faded {
|
||||
font-size: var(--font-size-small);
|
||||
font-weight: var(--font-weight-normal);
|
||||
margin-top: 0.125rem;
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
`);
|
||||
Reference in New Issue
Block a user